====== 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.
''robocopy /MIR /R:2 /W:3''
Refresh file security for all files, without copying any file data.
''robocopy /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.
''robocopy /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: ''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