Thursday, October 29, 2009

Robocopy

Explaination of typical Robocopy uses.

Make a copy of a whole directory, in restartable mode (incase something happens during copy) include all files and folders but don't copy any permissions.
robocopy /Z /E

Useful Options.

/Z
Restartable mode (good for network transfers etc, will continue when connection is re-established)
/E Copies ALL subdirectories, including empty ones
/R:1 Retry number of times - This is how many times a file copy should be retried before continuing
/PURGE Deletes any files/folders in the destination DIR that don't exist in the SOURCE. This is useful for backing up data etc.
/MOVE Deletes files and directories from the SOURCE once they are copied
/LOG+: Adds all output to a log file
/COPYALL Copies all file info (date/time/attributes/ACLs)


No comments:

Post a Comment