Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Robocopy -- Overview and usage

Symptoms

Customer is trying to move a bulk number of file and the robycopyrobocopy is generating many errors.

Explanation

The Windows client that is running robycopyrobocopy needs full control permissions to the mounted destination volume.

Resolution

https://wiki.samba.org/index.php/Shares_with_Windows_ACLs#Setup_share_permissions

SeDiskOperatorPrivilege

  • To configure share permissions, you need an account with „SeDiskOperatorPrivilege“. To grant this privilege, e. g. to the „Domain Admin“ group, run the following command on your AD member server(s):

# net rpc rights grant 'SAMDOM\Domain Admins' SeDiskOperatorPrivilege -U'SAMDOM\administrator' -I dc1.samdom.example.com 


Existing privileges can be reviewed by

# net rpc rights list accounts -U'SAMDOM\administrator' -I dc1.samdom.example.com
 

Examples:

Examples of Microsoft's Robocopy Syntax

#1 -- To copy contents of C:\UserFolder to C:\FolderBackup:

...

          Robocopy.exe c:\sourceFolder d:\targetfolder /max:33553332 /l 


Notes:

 -------------------------------------------------------------------------------

...

                C:\ robycopy /? 


References:

  1. Robocopy was a part of Windows Resource Kit Tools
  2. Articles 1073 -- Robocopy and a few examples
  3. robocopy :: create backup script
  4. FriendlyRoboCopy: A User’s Guide