Solved

Robocopy Incremental

Posted on 2016-10-17
5
113 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
[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
5 Comments
 
LVL 85

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 85

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 85

Expert Comment

by:oBdA
ID: 41883567
Question answered.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

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…
Resolve DNS query failed errors for Exchange
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
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…

695 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