Solved

Robocopy to copy just the Changes

Posted on 2013-10-30
3
433 Views
Last Modified: 2013-10-30
Robocopy to copy just the Changes
I ran Robocopy yesterday to copy all folders and files from drive F: to Drive G:
I need today to run Robocopy, to copy just the changes that have occurred on Drive F: to the same location G:
I mean file that have been added /deleted/modified.
What is the full command that can do that , without erasing any folder or files that I copied yesterday?

Thank you
0
Comment
Question by:jskfan
3 Comments
 
LVL 51

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 250 total points
Comment Utility
Perform the same copy as you did yesterday, but put the "eXclude Older" option at the end of the command line:

/XO

This means that if a destination file exists and is the same date or newer than the source file, then don't overwrite it. Regards, Joe
0
 
LVL 13

Accepted Solution

by:
Daniel Helgenberger earned 250 total points
Comment Utility
You can run the same
robocopy /mir <source> <dest>

Open in new window

This would only copy changes as well as deleting data not in source. This would skip equal files.
If you want to keep data added in destination and you have newer files there, run:
robocopy /xo <source> <dest>

Open in new window

This is like the rsync update, skipping newer files in destination (eXclude older).

If unsure consider using the /L switch, witch lists only.
0
 

Author Closing Comment

by:jskfan
Comment Utility
I will try it......
Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now