Use robocopy to copy only data that has changed since yesterday

Posted on 2008-10-08
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!  
Question by:samiam41
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 15

Expert Comment

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.

Author Comment

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

Open in new window

LVL 15

Accepted Solution

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


Author Comment

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

Author Closing Comment

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


Featured Post

Technology Partners: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
equalIsNot  challenge 43 178
linearIn  challenge 23 126
My project did see openJDK that I installed. What could be the problem 7 161
noX challenge 17 134
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In a recent question ( here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 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