Link to home
Create AccountLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

Robocopy parameters.

Hello,

I need to create two bat jobs to run robo copy between two file shares.  

The first job will run every hour to copy differential data from Mon to Thursday.  The second job will run on Friday to mirror data.

Can someone advise the parameters I should use?  I would like to try the below but not sure if any parameter(s) should be added also.  

Thanks.

Hourly differential job
ROBOCOPY \\sourceserver\share \\destserver\share /s /e /xo

Weekly Miirror job
ROBOCOPY \\sourceserver\share \\destserver\share /s /e /mir
ASKER CERTIFIED SOLUTION
Avatar of Patrick Bogers
Patrick Bogers
Flag of Netherlands image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of nav2567

ASKER

Thanks.  So, Robocopy \\SourceServer\Share \\DestinationServer\Share /e will copy only differential by default?
Always include /XO so that if destination is updated, source do not overwrite it
Yes.

Shaun, why exclude older files(/xo)
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Ahhh ok i get it. Right can be modified and should replicate from right to left during the mirror. Nice! Didnt think of that.