Solved

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

Posted on 2009-04-07
6
183 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
  • 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

Backup Your Microsoft Windows Server®

Backup 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.

Join & Write a Comment

Suggested Solutions

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

758 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

20 Experts available now in Live!

Get 1:1 Help Now