ROBOCOPY Switches Usage SAMPLES

ROBOCOPY Switches Usage SAMPLES

 

 

# Copy PHBCADSVR APPS Folder to PHBFS1

# robocopy \\Source Folder \\Destination Server\folder /MIR /COPYALL /DCOPY:T /R:1 /W:1 /TEE /LOG:C:\Logs\RobocopyResults.log

 

# robocopy \\Source Folder \\Destination Server\folder /s /e /z /xf /sec /DCOPY:T /R:1 /W:1 /TEE /LOG:C:\Logs\RobocopyResults.log

 

# robocopy \\Source Folder \\Destination Server\folder /s /e /z /xf /sec /DCOPY:T /R:1 /W:1 /TEE /LOG:C:\Logs\RobocopyResults.log

 

 

/s            Copies subdirectories. This option automatically excludes empty directories.

/e           Copies subdirectories. This option automatically includes empty directories.

 

/z            Copies files in restartable mode. In restartable mode, should a file copy be interrupted, Robocopy can pick up where it left off rather than re-copying the entire file.

 

/sec       Copies files with security (equivalent to /copy:DATS).

/copyall Copies all file information (equivalent to /copy:DATSOU).

 

/mir       Mirrors a directory tree (equivalent to /e plus /purge). Using this option with the /e option and a destination directory, overwrites the destination directory security settings.

 

/np         Specifies that the progress of the copying operation (the number of files or directories copied so far) will not be displayed.

 

/tee       Writes the status output to the console window, as well as to the log file.

Regards,

 

Kon Belieu

Partner

[email protected]   |  513-575-3500


4440 Lake Forest Dr., Suite 102B, Cincinnati, OH  45242

 

Tags:

Comments are closed

Latest Comments

No comments to show.