• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

syntax for how to use Robocopy to backup changed files with /m?

I want to copy 400GB from server A to server B.  I also need the syntax to copy changed files only? Do I run the same robocopy command twice (once to make the initial copy and again to copy changed files)?
0
victor2008
Asked:
victor2008
  • 2
1 Solution
 
5g6tdcv4Commented:
do your initial robocopy.
Then use robocopy /xo to exclude older
0
 
victor2008Author Commented:
Thanks 5G.  Can you give me an example?  Or, let me know if the below is accurate?

Would I do something like:

robocopy "source" "destination" /S /E /V /COPY:DATSO/LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL

Then (when I'm ready to do the final copy):

robocopy "source" "destination" /S /E /V /XO /COPY:DATSO/LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL
0
 
5g6tdcv4Commented:
robocopy "source" "destination"  /E /V /COPY:DATSO /LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL
for initial copy

robocopy "source" "destination"  /E /V /XO /COPY:DATSO /LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL


you could also just run:
robocopy "source" "destination"  /E /V /XO /COPY:DATSO /LOG+:C:\temp\robocopy.txt /R:1 /W:2 /NFL /NDL


it should copy files that do not exist in destination dir...stay away from /MIR
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now