Solved

Robocopy Not Copying FIle Permissions Correctly

Posted on 2013-05-28
7
1,485 Views
Last Modified: 2013-05-28
I have a Windows 2008 R2 server that runs an automated robocopy script to copy a folder (and all sub folder/files) to another drive on the same server. On a previous 2008 R2 server this worked perfectly and I can't figure out what changed (and unfortunately the old server is no longer around).

Here's the robocopy command I run:
Robocopy.exe C:\folder M:\folder /E /R:3 /W:0 /COPYALL /TS /FP

I was under the impression that /COPYALL would grab all the permissions and assign them correctly.

Has anyone had this issue/know what I should be looking for on my server? The folders on the C drive are still correct after the move, even though they're not on the destination folder.
0
Comment
Question by:brendan-amex
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 12

Expert Comment

by:Chris
ID: 39201863
All the switches look good to me.

Are you sure the missing permissions aren't inherited from a folder at a higher level?
0
 
LVL 15

Expert Comment

by:jerseysam
ID: 39201868
Have you ever used the robocopy GUI.

that way you can set the permissions correctly

See:

http://technet.microsoft.com/en-gb/magazine/2006.11.utilityspotlight.aspx
0
 
LVL 35

Expert Comment

by:Joseph Daly
ID: 39201874
Id suggest throwing the /SEC switch in there.

Robocopy.exe C:\folder M:\folder /E /R:3 /W:0 /SEC /COPYALL /TS /FP
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 12

Expert Comment

by:Chris
ID: 39202018
/COPYALL already includes /SEC
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
ID: 39202045
I understand it is supposed to be part of copyall however I have had issues in the past with that as well. Which is why when I use robocopy I will add the /SEC command.

If I am mirroring a directory my go to command is /MIR /SEC /COPYALL /ZB
0
 

Author Comment

by:brendan-amex
ID: 39202062
/ZB seems to work, but so does /B.

Can you explain what the heck restartable mode and backup mode does?

Thank you for the help though!
0
 

Author Closing Comment

by:brendan-amex
ID: 39202291
Thanks the ZB works, although I'm not sure what restartable mode and backup mode does!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Redirected folders in a windows domain can be quite useful for a number of reasons, one of them being that with redirected application data, you can give users more seamless experience when logging into different workstations.  For example, if a use…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question