Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

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 6937

Trending Articles