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

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:
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).

/log:<LogFile>

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

Leave a Reply

Your email address will not be published.