Solved

Use robocopy to copy only data that has changed since yesterday

Posted on 2008-10-08
5
556 Views
Last Modified: 2010-04-21
Hi Experts.  I am doing a file server migration and did a massive copy job yesterday using robocopy.  Since the copy took so long, I wasn't able to break the share that we are migrating so now I need to copy only the data that changed since yesterday's copy job.  How can I do this?  Thanks for your help!  
0
Comment
Question by:samiam41
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:tenaj-207
ID: 22674555
You have two options.  One you can use the /XO option (eXclude Older), which is would I'd use.  Your second option is to use /MIR which is to mirror the destination with the source.
0
 
LVL 9

Author Comment

by:samiam41
ID: 22674572
Essentiall something like this?
robocopy \\server\share \\nas\share /XO

Open in new window

0
 
LVL 15

Accepted Solution

by:
tenaj-207 earned 500 total points
ID: 22674600
I also like to specify everything (e) the retry (r) the verbose level (v) and a out put log.  So it'd look like this.  That means it'd copy everything except if it has an older or THE SAME date, only retry once (the default is some ridiculously high number) and wait time between retrys is 3 sec and the verbosity is set to high.  Lastly I can review the log to confirm that it got everything.


robocopy \\server\share \\nas\share /E /XO /R:1 /W:3 /V /log:c:\output.txt

Open in new window

0
 
LVL 9

Author Comment

by:samiam41
ID: 22674615
Ahhh.......  That makes much better sense.  I like that.  Alright, I have what I need.  Thanks for your help!
0
 
LVL 9

Author Closing Comment

by:samiam41
ID: 31504499
Great work!  I will be putting that into place once I am done here.  Take care!

Regards,
Aaron
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
withoutString  challenge 40 207
matchUp  challenge 6 69
fix34  challenge 9 140
What language/protocol is the Angular Chat? 2 83
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
The viewer will learn how to implement Singleton Design Pattern in Java.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question