The following robocopy command will transfer C:\Data to E:\Data with the following options:
robocopy C:\Data E:\Data /e /dcopy:t /sec /r:0 /np /xo /tee /log:c:\robocopy.log /mt:16
- /e — copy subdirectories, including empty ones
- /dcopy:t — copy directory timestamps
- /sec — copy files with security (equivalent to /COPY:DATS (Data, Attributes, Timestamps, Security))
- /r:0 — number of retries on failed copies: 0
- /np — no progress (don’t display percentage copied in the log)
- /xo — exclude older files (i.e. don’t overwrite newer files already in the destination)
- /tee — output to console window, as well as the log file (skip if using /mt)
- /log — output status to LOG file (overwrite existing log)
- /mt — Do multi-threaded copies with n threads (default 8)