Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Copy-Item....

$
0
0

folks I have a simple script

Copy-Item -recurse $i.FullName $destination

It works great except on one server.

Where it copies the entire content irrespective of whether it exists at the destination or not.

all I am doing in this script is to copy the latest transaction logs from a sql server to a remote location.

is there a switch that I can use that would let me not overwrite the destination?

Cheers

Paresh


Viewing all articles
Browse latest Browse all 10624

Trending Articles