Last active
August 29, 2015 13:56
-
-
Save typomedia/9257254 to your computer and use it in GitHub Desktop.
Robocopy Backup Documents
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
@ECHO OFF | |
ECHO Copyright 2014 Typomedia Foundation. All rights reserved. | |
ECHO Released under GPL version 3. | |
ECHO Robocopy Backup Documents 1.0 | |
PAUSE | |
SET user=<username> | |
SET dest="\\SERVER\Share\%user%" | |
ECHO Backup %user%'s documents... | |
robocopy %SystemDrive%\Users\%user%\Desktop /E /XO /R:0 /TEE %dest%\Desktop | |
robocopy %SystemDrive%\Users\%user%\Downloads /E /XO /R:0 /TEE %dest%\Downloads | |
robocopy %SystemDrive%\Users\%user%\Pictures /E /XO /R:0 /TEE %dest%\Pictures | |
robocopy %SystemDrive%\Users\%user%\Documents /E /XO /R:0 /TEE %dest%\Documents | |
robocopy %SystemDrive%\Users\%user%\Music /E /XO /R:0 /TEE %dest%\Music | |
robocopy %SystemDrive%\Users\%user%\Videos /E /XO /R:0 /TEE %dest%\Videos | |
robocopy %SystemDrive%\Users\%user%\Favorites /E /XO /R:0 /TEE %dest%\Favorites | |
robocopy %SystemDrive%\Users\%user%\Contacts /E /XO /R:0 /TEE %dest%\Contacts | |
robocopy %SystemDrive%\Users\%user%\Links /E /XO /R:0 /TEE %dest%\Links | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment