What is Robocopy's "restartable" option?

126,879

Restartable mode (/Z) has to do with a partially-copied file. With this option, should the copy be interrupted while any particular file is partially copied, the next execution of robocopy can pick up where it left off rather than re-copying the entire file.

That option could be useful when copying very large files over a potentially unstable connection.

Backup mode (/B) has to do with how robocopy reads files from the source system. It allows the copying of files on which you might otherwise get an access denied error on either the file itself or while trying to copy the file's attributes/permissions. You do need to be running in an Administrator context or otherwise have backup rights to use this flag.

Share:
126,879

Related videos on Youtube

user2279887
Author by

user2279887

Updated on July 06, 2020

Comments

  • user2279887
    user2279887 about 4 years

    robocopy /Z = "copy files in restartable mode".

    What does this option do? All the documentation I've found simply quotes the on-board manual. What is "restartable" mode, why would someone use it, and how does it differ from "Backup mode" (/B) ?

  • LogicDaemon
    LogicDaemon about 8 years
    hi. I know it's old question, still I'm not very convinced. Can you elaborate please? If a file is copied partially, and then changed in source, will robocopy /z make corrupted file, like xcopy? Why /z and /b are mutually exclusive? [*](# "(per manual: «/ZB :: use restartable mode; if access denied use Backup mode.»")
  • jpaugh
    jpaugh over 7 years
    @LogicDaemon My best guess is, that backup mode does not allow restarts; therefore, using restartable mode is preferable if there actually isn't a permission error.
  • user643011
    user643011 about 5 years
    Be aware that /z can have massive performance penalty. In my case I was seeing an improvement of 20MB/s to 600MB/s after removing /z. Source: serverfault.com/a/812212/268224
  • BurnsBA
    BurnsBA over 3 years
    More info on /Z and /B here: superuser.com/a/468131/367018
  • franchyze923
    franchyze923 over 2 years
    agree with @user643011 I had copied a command I found for a typical backup and it included the /Z flag. It was very slow so I started looking into it and after removing /Z copied much faster.
  • Cornbeetle
    Cornbeetle about 2 years
    @user643011 The reason for the performance drop is due to the extensive extra logging that is required to "recover" a failed file