nav2567
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Always include /XO so that if destination is updated, source do not overwrite it
Yes.
Shaun, why exclude older files(/xo)
Shaun, why exclude older files(/xo)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ahhh ok i get it. Right can be modified and should replicate from right to left during the mirror. Nice! Didnt think of that.
ASKER