Solved

Robocopy Incremental

Posted on 2016-10-17
5
60 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 83

Accepted Solution

by:
oBdA earned 500 total points (awarded by participants)
ID: 41846742
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 25

Expert Comment

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

Expert Comment

by:oBdA
ID: 41848074
/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
ID: 41851963
thank you for the feedback
0
 
LVL 83

Expert Comment

by:oBdA
ID: 41883567
Question answered.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Rename a directory with many subfolders 8 25
Network share lockout 5 19
RDS Licensing on Server 2012R2 5 19
Disk Quota Windows 2012 R2 5 53
The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
Big data transfers via information superhighways require special attention and protection. Learn more about the IT-regulations of the country where your server is located. Analyze cloud providers and their encryption systems for safe data transit. S…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

831 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