robocopy “D:source_folder” “D:dest_folder” /e /r:5 /w:10 /COPY:DATSOU /LOG:C:Copyresults.txt
OR
robocopy “\servernamesharename” “E:Data FolderTarget Folder” /MIR /W:10 /R:1 /LOG:E:ROBOCOPYCopyresults.txt
/e | Copies subdirectories. Note that this option includes empty directories. |
/r:<N> | Specifies the number of retries on failed copies. |
/copy:<CopyFlags> | Specifies the file properties to be copied. The following are the valid values for this option: |
/log:<LogFile> | Writes the status output to the log file (overwrites the existing log file). |