Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Copy files using Powershell Expand / Collapse
Author
Message
Posted Sunday, May 25, 2014 9:09 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Yesterday @ 7:56 AM
Points: 6, Visits: 132
Hey guys, I'm trying to figure out how to copy backup files from one shared location to another. I'm looking to be able to delete files at the destination, that no longer exist at the source, so what I'm looking for is for the destination to mirror the source location exactly. Thanks!
Post #1574429
Posted Sunday, May 25, 2014 11:24 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Yesterday @ 7:30 PM
Points: 36,766, Visits: 31,222
I've got just the thing for you. Check out the /MIR option. And, the three best things are 1) you probably already have it and 2) it's free and 3) it only requires a single command.
http://technet.microsoft.com/en-us/magazine/ee851678.aspx


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1574442
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse