robocopy F:\SOURCE D:\DESTINATION\ /MIR /FFT /Z /W:0 /R:0 /tee /log:Sync.log
    1. /MIR specifies that robocopy should mirror the source directory and the destination directory. Beware that this may delete files at the destination.
    2. /FFT uses fat file timing instead of NTFS. This means the granularity is a bit less precise.
    3. /W:5 reduces the wait time between failures to 5 seconds instead of the 30 second default.
    4. /R:2 reduces the repeat count of failures to 2 tries instead of the 1000000(!) default retries.
    5. /Z ensures robocopy can resume the transfer of a large file in mid-file instead of restarting.
    6. /B copy files in Backup mode.
    7. /ZB use restartable mode; if access denied use Backup mode.
    8. /MT[:n] Do multi-threaded copies with n threads (default 8).
    9. /CREATE creates directories and zero-length files only.
    10. /XF file [file]… eXclude Files matching given names/paths/wildcards.
    11. /XD dirs [dirs]… eXclude Directories matching given names/paths.
    12. /XA:H makes robocopy ignore hidden files, usually these will be system files that we’re not interested in.
    13. /log:RobocopySync.log write output into logfile instead stdout. Use in combination with /tee to get output to stdout AND logfile
    14. /COPY:copyflag[s] what to COPY for files (default is /COPY:DAT). (copyflags : D=Data, A=Attributes, T=Timestamps). (S=Security=NTFS ACLs, O=Owner info, U=aUditing info).
    15. /COPYALL Same as /COPY:DATSOU)
    16. /L List only – don’t copy, timestamp or delete any files. (like DRY-RUN)

    Leave a Reply