Solved

How do I copy directories from Server 1 to Server 2 while saving permissions?

Posted on 2009-04-07
6
189 Views
Last Modified: 2012-05-06
I have to move several directories with various permissions from one Server 2003 server to another Server 2003 and I want to retain all of the permissions. What is the easiest way to do so?
0
Comment
Question by:ampjohnson
[X]
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
  • 3
6 Comments
 
LVL 3

Accepted Solution

by:
zrobinson earned 250 total points
ID: 24092541
There is a very nice way of doing that here:

http://support.microsoft.com/kb/174273

Scopy [source] [destination] [/o] [/a] [/s]

   Where: [source] specifies the source for files to be copied.
          [destination] specifies where to copy files to.

   Switches:

      /o     copies owner security information.
      /a     copies security auditing information.
      /s     copies all files in sub-folders.
      /?     shows all command-line options.
0
 
LVL 3

Expert Comment

by:zrobinson
ID: 24098422
Hello ampjohnson,

Was this article helpful in the resolution of your question?
0
 

Author Comment

by:ampjohnson
ID: 24099617
I have tried that and the copy looks successful on the server which I performed the command, but it doesn't show up on the new server. As if it copied it to outerspace. Here is the syntax I used:

xcopy server1\share\test server2\group\test /o/s

Shouldn't the above copy the contents of server1's shared test folder to server2's group test folder?
0
 
LVL 3

Expert Comment

by:zrobinson
ID: 24099855
per the MS support article, you should use the scopy command, not xcopy.  Also, you should probably have a space between the switches(i.e. "/o /s").  However, I can't say for sure if that makes a difference.

Also, make sure you are logged on as a user that has full control to both of the locations on each server.
0
 
LVL 11

Assisted Solution

by:ecsrd
ecsrd earned 250 total points
ID: 24101591
Scopy was an old NT4.0 command line tool, which is probably the cause of the confusion.  I would recommend using Robocopy to do this:

robocopy <source> <destination> /MIR /COPYALL will copy all file security info for you.

You will find Robocopy on your Windows Server 2003 installation CD in the Tools folder, or you can download an updated version by visiting this link:

http://www.microsoft.com/downloads/details.aspx?familyid=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&displaylang=en
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 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