Created
January 15, 2018 15:32
-
-
Save MaskeZen/f36b8af8947260d8e1e0573615ae8ae1 to your computer and use it in GitHub Desktop.
UsersBackup.bat
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
robocopy "C:\Users" "E:\backups\Users" /MIR /XA:SH /W:0 /R:1 /REG /XJ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/MIR : Mirror a directory tree - equivalent to /PURGE plus all subfolders (/E)
/XA:[RASHCNETO] : eXclude files with any of the given Attributes
/W:n : Wait time between retries - default is 30 seconds.
/R:n : Number of Retries on failed copies - default is 1 million.
/REG : Save /R:n and /W:n in the Registry as default settings.
File Attributes [RASHCNETO]
R – Read only
A – Archive
S – System
H – Hidden
C – Compressed
N – Not content indexed
E – Encrypted
T – Temporary
O - Offline
La opción /mir es equivalente a las opciones /e más /Purge con una pequeña diferencia de comportamiento: