Skip to content
bobby_dreamer

ROBOCOPY - Windows Files Sync Tool

windows, file-sync1 min read

This is a simple file Sync tool available in windows which is easy to use, it called robocopy.

Below are the options

OptionsDescription
/lTest
/sSub directories
/eCopy including empty subdirectories
/copyallCopy all file properties
/mirmirror source and destination directories
/purgeif you have deleted some files and directories in source and want to remove from destination
/log:d:\tmp\robocopy-logs.txtSaving output to log file
/mt:32multi threaded copy to increase speed
/vVerbose logging will show skipped files

Examples

1-- Below command will show a preview of what will be synched
2robocopy branchTest G:\testgit\branchTest /l /e /s
3
4-- It will sync target as it is in Source. If you have deleted files from source, it will be deleted it the target
5robocopy D:\BigData "G:\20220824 - BigData" /e /s /mir /purge /mt:32 /log:d:\tmp\robocopy-bigdata.txt
6
7-- Source and Destination will be synched. If there are additional files in target, it will not be deleted.
8robocopy "D:\Bobby's" "G:\BOBB" /e /s /mir /mt:32 /log:d:\tmp\robocopy-bobbys.txt

Thanks for reading