Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Proper way to do a robocopy delta copy

Posted on 2010-11-14
8
Medium Priority
?
10,361 Views
Last Modified: 2012-05-10
I am in the middle of a file server migration and the amount of data is too large to fit into a single weekend. To make sure that all files and folders are up to date when I do the final cutover I know I am going to have to do a robocopy delta copy.
 
I am currently doing the first copy of the data which will probably run into the work week. So I need to know what is the proper robocopy syntax to run after the main copy has been made to capture only the changed files.

The command I ran to do the main copy was /mir /sec /copyall /zb
0
Comment
Question by:Joseph Daly
[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
  • 4
  • 3
8 Comments
 
LVL 27

Expert Comment

by:KenMcF
ID: 34131887
by using /MIR you are already doing that. If the file changes or is deleted from the source it will either copy the newer file oe delete the destinatin file.
0
 
LVL 10

Expert Comment

by:George Khairallah
ID: 34131892
You got it. One thing I would mention, is that the /sec is redundant, as the /copyall parameter will encompass your security as well.

You can also add a /MON:10, or MOT:5,  (you can change the numbers). This would keep your robocopy running, and up to date.
The MON will monitor a number of changed files, and MOT, will just check for changes every x minutes.

Whatever you do, even without the MON, or MOT, the current parameters will still get you a differential anyway.

Hope this helps.
0
 
LVL 35

Author Comment

by:Joseph Daly
ID: 34135945
So if I run a second robocopy after this one completes using the /mir /sec options this should do the delta copy.
0
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 
LVL 27

Expert Comment

by:KenMcF
ID: 34135998
I usually run it with the following switches.

/COPYALL  /MIR /ZB

/COPYALL :: COPY ALL file info (equivalent to /COPY:DATSOU).
/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).
/ZB :: use restartable mode; if access denied use Backup mode.

0
 
LVL 35

Author Comment

by:Joseph Daly
ID: 34136241
That is how I am currently running the first copy. I used /mir /sec /copyall /zb.

I just want to make sure that if I ran that same command again it isnt going to re-copy everything all over again.
0
 
LVL 27

Accepted Solution

by:
KenMcF earned 2000 total points
ID: 34136250
no it will not re-copy everything, just the files that were changed. If a file is not on the source and is on the destination then it will be deleted on the destination.
0
 
LVL 27

Expert Comment

by:KenMcF
ID: 34136267
To verfiy you could run from the command line or log to a text file

/LOG:C:\FileCopy.txt
0
 
LVL 35

Author Comment

by:Joseph Daly
ID: 34136288
I have logging enabled on the current copy and will do the same on the delta.

Prob be a few days until I can finish this so Im gonna keep this open till then.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
Resolving an irritating Remote Desktop connection that stops your saved credentials from being used.
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

610 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