Solved

Robocopy Not Copying FIle Permissions Correctly

Posted on 2013-05-28
7
1,447 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
Comment Utility
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
Comment Utility
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
Comment Utility
Id suggest throwing the /SEC switch in there.

Robocopy.exe C:\folder M:\folder /E /R:3 /W:0 /SEC /COPYALL /TS /FP
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 12

Expert Comment

by:Chris
Comment Utility
/COPYALL already includes /SEC
0
 
LVL 35

Accepted Solution

by:
Joseph Daly earned 500 total points
Comment Utility
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
Comment Utility
/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
Comment Utility
Thanks the ZB works, although I'm not sure what restartable mode and backup mode does!
0

Featured Post

Promote certifications in your email signature

Has your company recently won an award or achieved a certification? They'll no doubt want to show it off. Email signature images used to promote certifications & awards can instantly establish credibility with a recipient and provide you with numerous benefits.

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now