Solved

Robocopy to copy just the Changes

Posted on 2013-10-30
3
435 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 52

Assisted Solution

by:Joe Winograd, EE MVE
Joe Winograd, EE MVE earned 250 total points
ID: 39612016
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
ID: 39612026
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
ID: 39612194
I will try it......
Thanks
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

912 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

17 Experts available now in Live!

Get 1:1 Help Now