Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Use robocopy to copy only data that has changed since yesterday

Posted on 2008-10-08
5
Medium Priority
?
577 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
[X]
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
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 2000 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
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.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

610 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