Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to utilize robocopy to mirror files and folders from one shared location to another shared location, in restartable backup mode with security permissions.

My current command is:

robocopy //sourceServer/src //destinationServer/dest /E /XO /Z /R:5 /W:30 /MIR

I am planning to use /zb and /SEC flags, for which the user has to be given the following privileges:

 Manage auditing and security log   SeSecurityPrivilege 
 Backup files and directories       SeBackupPrivilege  

The user using which the command will be executed has R/W permissions on both the shared drives, what I need to know is do I need to give the above mentioined privileges to my user:

  1. on the source machine
  2. on the destination machine
  3. on the client machine where I am executing this cmd.
  4. on all the machines
share|improve this question

migrated from Jul 25 '11 at 11:10

This question came from our site for professional and enthusiast programmers.

Option 4 - but do it via a GPO at the Domain level.

Create a new group policy object (or edit an existing one if you prefer), and add the user to those two privileges under Computer Configuration --> Windows Settings --> Security Settings --> Local Policies --> User Rights Assignment. Apply the GPO to an appropriate OU and reboot the affected machines to allow the changes to take effect.

share|improve this answer

You must log in to answer this question.