Solved

Robocopy Incremental

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

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 84

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 84

Expert Comment

by:oBdA
ID: 41883567
Question answered.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

This article will review the basic installation and configuration for Windows Software Update Services (WSUS) in a Windows 2012 R2 environment.  WSUS is a Microsoft tool that allows administrators to manage and control updates to be approved and ins…
Choosing an appropriate provider for your company’s email security can be difficult as email security is a key element in the overall security of a business. A company’s email is an open door for malicious hackers who can potentially drive your busi…
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 the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

730 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