Solved

Robocopy Incremental

Posted on 2016-10-17
5
32 Views
Last Modified: 2016-11-11
We are migrating data onto a new server and were wondering if you can do a form of incremental robocopy?

we started copying data across from one server to another but it got interrupted, so we need to run the transfer again but only copy the differences not the whole lot again.

any advice on robocopy switches would be appreciated?
0
Comment
Question by:CRL ltd
  • 3
5 Comments
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points (awarded by participants)
Comment Utility
Just run your command again. robocopy will by default skip files that already exist in the same version (same size, same time stamp) in the target.
You'll probably want to look into these options:
/mir - Mirror; will delete files in the target that don't exist in the source (anymore). If you don't want that, you can use the usual /s (subfolders with content) or /e (subfolders including empty ones).
/copyall - copy security and audit information (if required); default is to just copy the data, inheriting the target's security.
/r:0 - Retry: in a LAN, if a copy attempt fails, it will in all likelihood continue to fail on subsequent attempts, so don't waste time in retrying.
/np - No Progress; you'll want to write a log for this, and the progress bar creates control characters that end up in the log file as well, making the log hard to read.
/log:"C:\Temp\robocopy.log" - Write a log file. Can be combined with /tee if you want console output as well, otherwise you won't see anything in the console.
/nfl and/or /ndl - No File List, No Directory List; can help keeping the log concise (or will there really be someone checking the log for each and every file that was successfully copied?); even with these, robocopy will log errors.
/mt - multithreading can help to run the copy faster, especially over a network.
0
 
LVL 24

Expert Comment

by:Mohammed Khawaja
Comment Utility
You should use /z which is restartable mode copy option.  It will only copy files that do not exists or are different.
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
/z has nothing at all to do with that. As I said: robocopy will by default skip files that already exist in the target in the same version. There is no additional command line option required - you'd actually need the option /is ("include same") to force it to copy over existing files.
"Restartable mode" means that if he copy is interrupted while copying a file, the next copy attempt can try to continue where the former attempt stopped. This does not always work anyway, it's usually unnecessary in a LAN where you typically have a stable connection, and it creates overhead which slows down the copy. /z is mostly useful when copying large files over unreliable connections.
0
 
LVL 1

Author Comment

by:CRL ltd
Comment Utility
thank you for the feedback
0
 
LVL 82

Expert Comment

by:oBdA
Comment Utility
Question answered.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Table of Contents: Lesson 1 - Installing Windows Server 2012 (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Windows_Server_2012/A_11592-Become-an-Administrator-Installing-Windows-Server-2012.html) Lesson 2 - Configuring Ser…
Recently, I was assigned the task of performing a hardware refresh in the datacenter. The previous Windows 2008 systems were connected to the SAN via fiber channel HBA’s and among other thing, had PowerPath installed in order to provide sufficient f…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…

744 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

15 Experts available now in Live!

Get 1:1 Help Now