Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Robocopy's "restartable" option?

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) ?

like image 440
user2279887 Avatar asked Jan 07 '14 22:01

user2279887


People also ask

Should I use xcopy or robocopy?

Unlike Xcopy, Robocopy is used to mirror or synchronize directories. Robocopy will be able to check the target directory and delete files that are no longer in the main tree, instead of copying all files from one directory to another.

Does robocopy overwrite existing files?

Robocopy normally overwrites those. /XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those. /XO excludes existing files older than the copy in the source directory.

What is better than robocopy?

The best alternative is FreeFileSync, which is both free and Open Source. Other great apps like Robocopy are TeraCopy, rsync, FastCopy and Bvckup 2.

What is restartable mode in Robocopy?

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.

What is the partially copy option for in Robocopy?

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.

What is Robocopy backup mode?

Backup mode allows Robocopy to override file and folder permission settings (ACLs). This allows you to copy files you might otherwise not have access to, assuming it's being run under an account with sufficient privileges. Copies files in restartable mode. If file access is denied, switches to backup mode.

What is the syntax of Robocopy?

Syntax. robocopy <source> <destination> [<file> [ ...]] [<options>] For example, to copy a file named yearly-report.mov from c:reports to a file share marketingvideos while enabling multi-threading for higher performance (with the /mt parameter) and the ability to restart the transfer in case it's interrupted (with the /z parameter), type: dos.


1 Answers

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.

like image 56
Luke Z Avatar answered Oct 24 '22 07:10

Luke Z