Copy windows files and permissions from one server to another?

I need to copy a set of folders from one server to a new server. I would like to keep all permissions and share intact.

Would I do this with xCopy?

Additionally, how do i copy cross machine?

The machine names are DC4 and DC5, I need to copy an entire drive, (D:\)
HADDADD3Asked:
Who is Participating?
 
Brad HoweDevOps ManagerCommented:
Hi,

I would you ROBOCOPY with the following switches

robocopy D:\ \\SERVERNAME\D$ /COPYALL /E /R:0 /DCOPY:T

robocopy /? will give you the command line switches. Essentially, this copies everyhitng keeping permissions and date timestamps intact.

Cheers,
Hades666


0
 
SnibborgOwnerCommented:
Best tool for this is robocopy.  This allows you a great deal of flexibility and allows you to see logs of success / failure.

Get it here:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

Snibborg
0
 
Brad HoweDevOps ManagerCommented:
AS per the custom shares. As long as the drive letters are the same, you can do the following.

Saving and restoring existing Windows shares
http://support.microsoft.com/kb/125996

Make a registry export from server1 and import to server2.

Cheers,
Hades666
0
 
Darius GhassemCommented:
0
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
I would test my backups - restore the last full backup and then, if necessary, run robocopy to copy files since the last full backup.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.