If I copy a directory (which has subdirectories and files) from one server to another in a Win2K domain, how do I make sure that the new copy has the same file and access permissions as the original did?
- Rick
If I copy a directory (which has subdirectories and files) from one server to another in a Win2K domain, how do I make sure that the new copy has the same file and access permissions as the original did?
Using xcopy with the /O switch should do it.
Type xcopy /? |more at the command line to see all its switches and parameters.
I don’t know of a native way to do that. I can ask around. You may have to use commercial software such as secure copy.
This at least is what one tech from Network Appliance told us when we were migrating data from our NT servers to a NetApp filer.
Like number said, ‘xcopy /o’ should do the trick, though it’s always best to play around with it on some dummy data to make sure it does what you think it does before you rely on it.
Also, for anyone still using NT3.51 or NT4, you should get the appropriate Windows NT resource kit from MS (it’s $50 or so for the disk and book) - one of the utilities on it is ‘scopy’, which also copies permissions (pre-win2k xcopy doesn’t have the /o switch).
OK some quick googling turns up XXCOPY (as opposed to single-x copy) and Robocopy as utilties that can preserve file permissions and nt security information.
check out:
http://www.xxcopy.com/xxcopy30.htm
On that second link, you’ll have to scroll down to the 2nd question, the one about scopy.