Solved

Robocopy to copy just the Changes

Posted on 2013-10-30
3
445 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
[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 Comments
 
LVL 54

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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.

736 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