An Engineers Notebook

Which switches to use for ROBOCOPY

robocopy “D:source_folder” “D:dest_folder” /e /r:5 /w:10 /COPY:DATSOU /LOG:C:Copyresults.txt


robocopy “\servernamesharename” “E:Data FolderTarget Folder” /MIR /W:10 /R:1 /LOG:E:ROBOCOPYCopyresults.txt



Copies subdirectories. Note that this option includes empty directories.


Specifies the number of retries on failed copies.


Specifies the file properties to be copied. The following are the valid values for this option:
D Data
A Attributes
T Time stamps
S NTFS access control list (ACL)
O Owner information
U Auditing information
The default value for CopyFlags is DAT (data, attributes, and time stamps).


Writes the status output to the log file (overwrites the existing log file).

Leave a Reply

Your email address will not be published.