User Tools

Site Tools


robocopy-mirroring

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

robocopy-mirroring [2013/01/27 21:29] (current)
Line 1: Line 1:
 +====== Robocopy - Mirroring ======
 +Default retry count is 1 million and default wait is 30 seconds. ​ I recommend reducing that to a realistic level (i.e. 2 retries and 5 or 10 seconds for the wait). ​ If you're trying to mirror drives, this might be simpler than excluding files and directories.
 +
 +Copy the data over.<br />
 +''​robocopy <​source>​ <​target>​ /MIR /R:2 /​W:​3''​
 +
 +Refresh file security for all files, without copying any file data.<br />
 +''​robocopy <​source>​ <​target>​ /E /COPY:S /IS /IT /R:2 /​W:​3''​
 +
 +Replicate data (/MIR) and security (/SEC) for changed files, and update just the security (/SECFIX) for unchanged files.<​br />
 +''​robocopy <​source>​ <​target>​ /MIR /SEC /SECFIX /R:2 /​W:​3''​
 +
 +===== File Shares? =====
 +If these are file shares you are migrating to a new drive, follow these additional steps.
 +
 +  -. Run**regedit**
 +  -. Browse to the following key:<br /> ''​HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Shares''​
 +  -. Edit the**Path** for each of the moved shares to the new location
 +  -. Restart the**Server** service
 +
 +===== References =====
 +  * [[http://​blogs.technet.com/​b/​filecab/​archive/​2008/​07/​31/​robocopy-mir-switch-mirroring-file-permissions.aspx]]
 +  * [[http://​support.microsoft.com/​kb/​125996]]
 +
 +
 +
 +-- Main.FredPettis - 2012-06-20
  
robocopy-mirroring.txt ยท Last modified: 2013/01/27 21:29 (external edit)