Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Robocopy to copy just the Changes

Posted on 2013-10-30
3
Medium Priority
?
452 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 56

Assisted Solution

by:Joe Winograd, EE MVE 2015&2016
Joe Winograd, EE MVE 2015&2016 earned 1000 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 1000 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

Assume you have an outside contractor who comes in seasonally or once a week to do some work in your office, but you only want to give him access to the programs and files he needs and keep all other documents and programs private. Can you do this o…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

972 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