Last active
April 5, 2018 17:19
-
-
Save scruffydan/5ac91905560f6712665e045ac6eb6c0f to your computer and use it in GitHub Desktop.
Robocopy Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A small collection of useful robocopy scripts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Creates a mirror of the source permissions at the destination, files are not copyied | |
:: Run as an administrator | |
robocopy "\\SOURCE\UNC" "\\DESTINATION\UNC" /s /zb /secfix /copy:ATSOU /r:3 /w:3 /MT:64 /v /log:C:\loglocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Creates a mirror of the source at the destination, including file permissions | |
:: Useful for migrating to a new server | |
:: Run as an administrator | |
:: Use the /sl to prevent robocopy from follwing symlinks | |
robocopy "\\SOURCE\UNC" "\\DESTINATION\UNC" /s /zb /secfix /copyall /mir /r:3 /w:3 /MT:64 /v /log:C:\loglocation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment