Backup a folder with exact contents (Mirror)
Show Copy Progress, No Log File:
Robocopy "D:\FolderMyStuff" "I:\MirrorBackup" /MIR /W:3 /R:1 /ETA /XJ /XF Thumbs.db
Log:
Robocopy "D:\FolderMyStuff" "I:\MirrorBackup" /MIR /W:3 /R:1 /LOG:"i:/log.txt" /NP /TEE /XJ /XF Thumbs.db
Full Log, Show and Log Skipped Files:
Robocopy "D:\FolderMyStuff" "I:\MirrorBackup" /MIR /W:3 /R:1 /LOG:"i:/log.txt" /NP /V /TEE /XJ /XF Thumbs.db
/MIR Mirror mode.
/R:1 Try to copy 1 more time a file if the copy fails.
/W:3 Wait 3 seconds before re-try to copy the fail file.
/LOG:"i:/log.txt" Save the log to a file.
/V Produce Verbose output, showing skipped files.
/TEE Output to console window, as well as the log file.
/NP No Progress - don't display percentage copied.
/ETA Show Estimated Time of Arrival of copied files. (Don't use this with /log)
/XJ Exclude Symlinks / NTFS Junction Point
/XF Thumbs.db Exclude files, in this case will exclude "Thumbs.db" |
Created By
keybase.io/romel
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by RomelSan