xcopy and permissions

Smilin

Distinguished
Oct 3, 2001
421
0
18,780
I had to do a server move this weekend and used the Windows 2000 version of xcopy to do so. When the copy (~80gig) was complete there were several folders and subfolders that had the windows default permissions of everyone:full in addition to the permissions they should have.

I'm not exactly sure of the syntax I used but this should be pretty close:

xcopy <source> <dest> /S /E /V /C /Q /H /R /K /O /X

(Damn lotta switches)

Anyone seen anything like this before? Nothing obvious in technet. The copy went ok and I was able to clean up the erroneous permissions but I'm going to be doing something similar next weekend and I'd like to know what went wrong.

Might have to fall back to using Scopy if I can't find an explanation.

One of you MCSE's knows this I'm sure (wink)
 
You could try this:

<A HREF="http://www.datman.com/xxcopy/" target="_new">http://www.datman.com/xxcopy/</A>

It's a little more powerful than XCOPY.

Toejam31

<font color=red>My Rig:</font color=red> <A HREF="http://www.anandtech.com/mysystemrig.html?rigid=6847" target="_new">http://www.anandtech.com/mysystemrig.html?rigid=6847</A>
____________________________________________________

<font color=purple>"Procrastination on your part does not constitute an emergency on my part."</font color=purple>
 
Pretty nifty version of xcopy. Doesn't do that one little thing that the w2k version does though 🙁

Gotta copy and maintain the ACLs

I'll keep it in mind for some other stuff. You can never have to many command line switches!
 
scopy.exe is the program you want, it will keep all your permissions.
 
If you have NTFS and you want to copy and keep the permissions asis, use scopy. Scopy is part of the NT resource kit. When you use xcopy to copy files or a directory tree structure, xcopy strips off file attributes by default. im sure all those switches are meant to compensate for this characteristic, but scopy will do the job.

ignore everything i say
 
Yeah, gonna have to use it for the next round of copies. The new xcopy that comes with w2k has the /O switch that is supposed to do the same thing (and does) but it appears to have some problems.
 
Have you tried robocopy.exe ? This is located in the win2k resource kit.

😎 <font color=blue> I know nothing that is why i am here at THG!</font color=blue>
 
Why not just image the hd of the server.. Yes I know with 80 gigs then it is going to fill up to about 20 CD's but hey its a much better way to store that system because it really takes that direct image and wont change any settings.
 
Not really applicable in this case. The data is going from an NT 4.0 server to a NAS box that runs a "based on" Windows 2000 server operating system. I'll give Dell credit...that NAS box is some slick [-peep-]. Half a Terabyte of storage on fibre for about $12,000.