Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Robocopy Not Copying FIle Permissions Correctly

Posted on 2013-05-28
7
1,499 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
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…

861 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