• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 11327
  • Last Modified:

Proper way to do a robocopy delta copy

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
Joseph Daly
Asked:
Joseph Daly
  • 4
  • 3
1 Solution
 
KenMcFCommented:
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
 
George KhairallahCommented:
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
 
Joseph DalyAuthor Commented:
So if I run a second robocopy after this one completes using the /mir /sec options this should do the delta copy.
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
KenMcFCommented:
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
 
Joseph DalyAuthor Commented:
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
 
KenMcFCommented:
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
 
KenMcFCommented:
To verfiy you could run from the command line or log to a text file

/LOG:C:\FileCopy.txt
0
 
Joseph DalyAuthor Commented:
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

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now