Copying data to new server, overcoming permissions/ownership issues?

Posted on 2007-08-09
Last Modified: 2013-11-05
I've been using combinations of XCopy, Robocopy, Total Commander or good old drag and drop to move data to new servers over the last couple of years.

Every now and then none of these programs can copy over some files because the user has taken ownership and removed read permission for the Administrators group.  So you have to go through taking ownership then recreating permissions.  It's always been a problem but is a bigger one this time!

So I'm just wondering what are others using to get around this?  My understanding is backup programs can overcome this and backup these files regardless of the permissions, does that mean the only way of getting everything copied across while truly maintaining permissions is to back the folders up with NTBackup then restore to the new server?  Is there any program like Total Commander that could run as a member of the Backup Operators group and do this?

Question by:Zenith63
    LVL 82

    Assisted Solution

    You can use robocopy with the /zb switch; this will try in restartable mode first, if the access is denied, it will use backup mode (your account obviously has to be member of the backup operators group for this).
    If you're copying permissons as well, make sure you're not copying the ownership, or you might have access problems for the target object as well.
    LVL 12

    Accepted Solution

    LVL 11

    Author Comment

    oBdA - Have you had a problem where copying the ownership stops you writing to the destination?  It makes sense that it could be an issue, just wondering how common it is?  That /ZB switch is definitely handy to know, but not copying ownership would be an issue if you're using Quotas.

    zoofan - That's pretty cool now!  It copies over the files without permissions, then applies the permissions afterwards to overcome the issue oBdA mentioned with Robocopy and /ZB.  I'm trying it out now, looks good so far.  The only thing is you don't get much control over the destination folder naming, it would be nice to choose the exact source and desination folder.  As it is it creates a folder structure on the destination like OLDFILESERVER.DOMAIN.LOCAL\SHARENAME.  Maybe I can edit the XML project files to improve this!
    LVL 11

    Author Comment

    My mistake, you actually can be specific with the destination of files in FSMT, excellent!

    Thanks for the help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Replication has always been one of those technologies that people run scared from. The main reason is usually cost. When you think of replication, your mind drifts to solutions that replicate from one disk frame to another using block level technolo…
    How to fix error ""Failed to validate the vCentre certificate. Either install or verify the certificate by using the vSphere Data Protection Configuration utility" when you are trying to connect to VDP instance from Vcenter.
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
    The viewer will learn how to install the Spideroak software to backup files. Start your default browser: In the URL location bar type and press enter: When you see the spideroak site, click the “Try for free” button in the upper ri…

    779 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

    18 Experts available now in Live!

    Get 1:1 Help Now