Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying File Permissions and Shares

Status
Not open for further replies.

useractive

Programmer
Jun 21, 2001
98
US
This weekend we will be moving data from one file server to another. It has to be an exact copy of the data. Problem is it's a large amount of data (60 gig or so) and I do not want to re-create all of the file permissions and shares. Is there a way using Xcopy or a special software that will allow you to copy it all, and keep all file permissions and shares?

Thanks,
Swish
 
Swish,

You can use xcopy with the following switches:

xcopy d:\users u:\users /O /E /H /Q /F


/E Copies directories and subdirectories, including empty ones.
/Q Does not display file names while copying.
/F Displays full source and destination file names while copying.
not support encryption.
/H Copies hidden and system files also.
/O Copies file ownership and ACL information.

I am in the process of copying over 40 gig and it is giving me the desired results. All file permissions are retained. The only other thing I had to do was move the share. Once the data is verified, delete the original file structure.

Hope this help,

C0SiN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top