Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

Robocopy parameters.

Hello,

I need to use ROBOCOPY to copy all folders from \\SOURCESERVER\d$ (Please screen shot) to a shared drive of a new server \\NEWSERVER\CENTRAL

Can I use something like the below?

ROBOCOPY "\\SOURCESERVER\d$\BE Disaster Recovery Server Files" "\\NEWSERVER\CENTRAL" //MIR /SEC /W:0 /R:0 /IS /LOG:c:\copy.log
ROBOCOPY "\\SOURCESERVER\d$\GPOShare" "\\NEWSERVER\CENTRAL" //MIR /SEC /W:0 /R:0 /IS /LOG:c:\copy.log
...etc...

I want all folders to be shown in \\NEWSERVER\CENTRAL with all original security permission settings.  Please check if the parmeter I use are correct.

Thanks.
fileshares.png
ASKER CERTIFIED SOLUTION
Avatar of Hello There
Hello There

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Be careful if using /MIR! You cannot run that with different source folders to a single target folder.
If you want to use /MIR  - for example to allow for several "incremental" or test runs over time -  you need to use different targer folders.
So Hallo There's second command may only be used if you have a single source.

On the other hand, /MIR is required only if you need to have an exact copy you can run multiple times, replicating deletes, changes etc.
If you do not care whether deletes are replicated on second go, you do not need /MIR.