Robocopy is a built-in Windows tool that is used to copy files from one location to another in seamless way. It is used by administrators for its efficiency and convenience. Here are some example uses.
NOTE: Replace (source) (destination) with UNC paths or mapped drive letters. Also, don’t put the trailing backslash in path names as Robocopy will treat this as an escape character.
# This will perform standard copyrobocopy(source)(destination)# This will delete files in dest that don't match sourcerobocopy(source)(destination)/mir/r:1/w:1
To Copy Directories Over Network:
1
robocopy(source)(destination)/mir/mt:32/r:10/w:10
To Copy Folder Structure (and permissions) But Not Files:
1
robocopy(source)(destination)/e/z/SEC/xf*
To Resolve A “Path Too Long Error”:
Robocopy can overcome the 255 character limitation in Windows:
For an extra step, I would go into the file server itself and set permissions for each user to where only the administrator and that user can modify their directory. Then when they access the file server, they can only use and see their backups.
To Copy only permission changes (additions and removals) assuming we already have a copy of the data:
Comments