ROBOCOPY SOURCE DESTINATION /?
1. Copy Options (Selecting What to Copy)
/S : Copy subdirectories, but not empty ones.
/E : Copy subdirectories, including empty ones.
/LEV:n : Only copy the top n levels of the source directory tree.
/Z : Copy files in restartable mode (survives network drops).
/B : Copy files in Backup mode (overrides permission restrictions).
/ZB : Uses restartable mode; if access is denied, switches to Backup mode automatically.
/J : Copy using unbuffered I/O (recommended for very large files like VHDs to prevent RAM caching).
/MIR : Mirror a directory tree (equivalent to /E plus /PURGE). Warning: deletes files in destination that no longer exist in source.
/MOV : Moves files (deletes them from source after copying).
/MOVE : Moves files and directories (deletes them from source after copying).
2. File Selection Options (Filtering)
/XO : eXclude Older files (skips files if destination is newer).
/XN : eXclude Newer files (skips files if destination is older).
/XC : eXclude Changed files (same timestamp, different size).
/XN : eXclude Newer files.
/A : Copy only files with the Archive attribute set.
/M : Copy only files with the Archive attribute and turn it off.
/MAX:n : Maximum file size limit (excludes files bigger than n bytes).
/MIN:n : Minimum file size limit (excludes files smaller than n bytes).
/MAXAGE:n : MAXIMUM file AGE (excludes files older than n days or date).
/MINAGE:n : MINIMUM file AGE (excludes files newer than n days or date).
/XF file [file]... : eXclude Files matching given names/paths/wildcards.
/XD dirs [dirs]... : eXclude Directories matching given names/paths.
3. Retry Options (Error Handling)
/R:n : Number of Retries on failed copies (default is 1,000,000). Set to /R:0 to skip errors instantly.
/W:n : Wait time between retries (default is 30 seconds). Set to /W:0 to skip delay.
/REG : Save /R:n and /W:n in the Registry as default settings.
/TBD : Wait for share names to be defined (retry error 67).
4. Logging & Performance Options
/MT[:n] : Do Multi-Threaded copies with n threads (default is 8, max is 128). Gives massive speed boosts on modern CPUs.
/L : List only — don't copy, delete, or timestamp any files. (Dry-run mode).
/V : Produce verbose output, showing skipped files.
/TS : Include source file Time Stamps in the output.
/FP : Include Full Pathnames of files in the output.
/NJH : No Job Header logged.
/NJS : No Job Summary logged.
/LOG:file : Output status to log file (overwrites existing log).
/LOG+:file : Output status to log file (appends to existing log).
/TEE : Output to console window, as well as to the log file.