Solved

Robocopy Incremental

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Understanding the various editions available is vital when you decide to purchase Windows Server 2012. You need to have a basic understanding of the features and limitations in each edition in order to make a well-informed decision that best suits y…
A procedure for exporting installed hotfix details of remote computers using powershell
In this Micro Tutorial viewers will learn how to use Windows Server Backup to create full image of their system. Tutorial shows how to install Windows Server Backup Feature on Windows 2012R2 and how to configure scheduled Bare Metal Recovery backup.…
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…

863 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

23 Experts available now in Live!

Get 1:1 Help Now