Skip to content

robocopy

OptionDescription
/sCopies subdirectories. Note that this option excludes empty directories
/eCopies subdirectories. Note that this option includes empty directories
/bCopies files in Backup mode
/vproduce Verbose output, showing skipped files
/npnot show percentage progress of each file copy
/movMoves files and deletes them from the source after they are copied
/purgeDeletes destination files and directories that no longer exist in the source
/r:[n]number of retries
/w:[t]wait time in sec between retries
/mt:[n]multi-threaded switch
/log:[file]log file path
/xa:SHexclude hidden system files
/xd folderexclude the folder

mirror a folder without deleting destination files

Robocopy "C:\src" "F:\bak" /s /r:5 /w:15 /mt:4 /np /log:backup.log