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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using XCOPY to move data from one server to another? 1

Status
Not open for further replies.

Hueby

MIS
Oct 20, 2004
321
US
Hi all,

How can I use XCOPY to move data from one server to another server? I am moving data from the old DC to the new DC, and need to know how to specify the command for the servers.

Is something along: xcopy server1/ c:\blah server2/ c:\blah ??????

Thanks for any tips! I can provide more details if needed...
 
OK thanks... I'm trying:

XCOPY \\server1\c:\data \\server2\c:\data

at the moment with no luck, it says invalid drive path.. assuming rights and access something like that command would be okay?
 
Why not:
Map drive "Y" to "\\server1\c:\"
Map drive "Z" to "\\server2\c:\"

Then:
xcopy Y:\data Z:\data

Let us know your results!

X
 
Well, no. You can't use c: for a windows server to my knowledge. Since you have control of both servers I would suggest running the xcopy command from one of the servers. That way you can login to the 1st server, open up the folder on the 2nd server to make sure you have access and then use the syntax on that link I sent you.
 
Thanks for the insight so far.. I'll play with it some and see what I can do.
 
Thanks! I used:

Why not:
Map drive "Y" to "\\server1\c:\"
Map drive "Z" to "\\server2\c:\"

Then:
xcopy Y:\data Z:\data

...it worked great!
 
Just an idea but i've found robocopy to be faster and even faster than that was to use Windows backup to backup to a file and then redirect the restore to the new server.
 
isn't it odd to start the copy command from a third machine like you are doing? my guess is that all data will pass through your network card before reaching SERVER2... I might be off with this, as I haven't tested it.

Windows backup faster than Robocopy? what kind of hardware are you using then? a Robocopy on a 1Gb LAN is hard to even with MSBACKUP.
 
That didn't come out right i meant it might be faster than learning all the switches if you haven't used Robocopy before.
 
Sorry, the way I typed it might of confused some.. I was running the command from the old server. I had only two machines I was dealing with.

But I have it working great now.. thanks again for all your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top