Tuesday, January 20, 2009

Migrate Data with Robocopy

robocopy C:\ \\\ /MIR /COPYALL /Z /LOG:C:\Robocopy.txt /R:0 /W:0 /NP /XD RECYCLER "System Volume Information" ~snapshot

Some explanations:

  • /Z - Restartable Mode - If Robocopy is stopped, then restarted, partially copied files are picked up and incrementally copied.
  • /B - Backup Mode - In some cases it is advised to also add the /B (Backup Mode) option to copy files in backup mode. This option leverages the Windows NT "backup mode" feature, allowing files to be copied using the Backup Operator rights.

7 comments:

  1. Anonymous5:43 AM

    Only one limitation: Tools like robocopy, xcopy, xxcopy, ... has problems of copying files without read access. Secure Copy or emccopy (only for EMC) can do it!

    ReplyDelete
  2. Poster1 - this is incorrect. You can use backup mode (if you have such permissions) to copy files you don't have permissions on.
    It's "/B" parameter. Can also be combined with "/Z" -> "/ZB"
    Quote:
    "/ZB :: use restartable mode; if access denied use Backup mode"
    Origin: robocopy help

    ReplyDelete
  3. Poster number1, this is incorrect; if you have backup permissions, you can use "/B" for backup mode.

    Robocopy help:
    /Z :: copy files in restartable mode.
    /B :: copy files in Backup mode.
    /ZB :: use restartable mode; if access denied use Backup mode.

    ReplyDelete
  4. Poster1 - this is incorrect. You can use backup mode (if you have such permissions) to copy files you don't have permissions on.
    It's "/B" parameter. Can also be combined with "/Z" -> "/ZB"
    Quote:
    "/ZB :: use restartable mode; if access denied use Backup mode"
    Origin: robocopy help

    ReplyDelete
  5. Great piece of informative stuff nice I hope you will continue to share more in the future such as amazing content data copy tool

    ReplyDelete
  6. Great piece of informative stuff nice I hope you will continue to share more in the future such as amazing content data copy tool

    ReplyDelete