Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

migrated from stackoverflow.com Jul 25 '11 at 11:10

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

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.