Mastering Easy RoboCopy: Simple Commands for Reliable Copies
RoboCopy (Robust File Copy) is a built-in Windows command-line tool designed for fast, reliable file and folder replication. It’s ideal for backups, syncs, and migrations. This guide gives concise, practical commands and tips so you can start using RoboCopy confidently.
Why use RoboCopy
Reliability: Retries on failure and preserves file attributes.
Speed: Multithreaded copying for large datasets.
Control: Filters, logging, and granular options for exact behavior.
Basic command structure
Syntax:
robocopy [] []
Example copy of all files and folders:
robocopy “C:\Data” “D:\Backup” /E
/E — copy subdirectories, including empty ones.
Common, useful options
/S — copy subdirectories but skip empty ones.
/MIR — mirror a directory tree (equivalent to /E plus delete from destination). Use carefully.
/COPY:DAT — copy Data, Attributes, Timestamps (default includes security info; adjust if needed).
/SEC — copy files with security (ACLs).
/Z — restartable mode (useful over unstable networks).
/ZB — use restartable mode; if access denied, use backup mode.
/MT[:n] — multithreaded copy, n threads (default 8; max 128). Example: /MT:32. Not compatible with /IPG or /EFSRAW.
/R:n and /W:n — retry count and wait seconds between retries (default /R:1 million /W:30). Example: /R:5 /W:5.
/LOG: and /UNILOG: — write log (UNILOG uses UTF-8).
/XO, /XN, /XC — exclude older, newer, or changed files.
/XF and /XD — exclude specific files or directories (supports wildcards).
/FFT — assume FAT file times (2-second granularity) — helpful when copying between different filesystems.
/COPYALL — copy all file info (equivalent to /COPY:DATSOU).
Leave a Reply