Solved

Xcopy across a slow network

Posted on 2008-10-08
4
1,182 Views
Last Modified: 2008-10-10
I am trying to do an xcopy of a large workgroup drive from another computer on the network.  NTBackup would always fail with no explanation. and no log file - - -computer actually restarts.

When I do a down and dirty xcopy, I see that the network drive is lost after about 800 M of transfer.  I did it again and got much farther.

I see the

/Z           Copy files in restartable mode. If the copy is interrupted part
                way through, it will restart if possible. (use on slow networks)

But have never used this switch.  if my network connection is timing out, are there any other options? With this switch, I assume it won't pick up where left off <g> but simply reissue the command?

I am also wondering if the ntbackup fauliure and machine reboot is related to the xcopy telling me the connection was lost?
0
Comment
Question by:Mixmangle
  • 2
  • 2
4 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 250 total points
ID: 22672784
For large file transfers you're better off using Robocopy.  It won't re-copy identical files which already exist in the destination.  Like xcopy it has a /Z switch which allows the transfer of an individual file to be resumed if it gets interrupted.  However, using it slows down the file transfer quite a bit.
http://en.wikipedia.org/wiki/Robocopy

If the machine is spontaneously rebooting then it likely has problems which are unrelated to this file transfer.  Check for bad RAM, overheating, bad capacitors on the motherboard, etc.
0
 
LVL 2

Author Comment

by:Mixmangle
ID: 22674822
I had used robocopy a few times. Tried it on the same machine, same connection and it got all the way without any special switches whereas xcopy would report network timeouts.  I know there are additional switch options for robocopy but, againm without any special switch options robocopy completed 3 out of three while xcopy kept giving network timeout errors.  

ROBOCOPY must be more tolerant of network problems "out of the box" so to speak.

Thanks for the suggestion
0
 
LVL 2

Author Comment

by:Mixmangle
ID: 22681004
OK.  Robocopy seems to handle the network quirks better than xcopy.  I will also look into the gui.

So, if I want to run robocopy daily on the same directory and subs and then only copy new/changed files on each subsequent run . . . . .

robocopy x:\*.*  c:\robocopy  /s  /z

I guess where I am a bit confused . . .will it only copy new or changed files by default . . . . . . or do I need to ad another switch.  I'm using /s  (maybr /e) for subs . . . and /z for retires .  But is the part about only newer or changed in subsequent runs . . .is that incuded by default or do I need to specify something else. I downloaded the gui as well
but I just need a temp bandaide and I don;t need all the logging or anything more than above.

0
 
LVL 38

Expert Comment

by:Shift-3
ID: 22681566
Robocopy's syntax requires you to specify directory paths, so you'd want to remove the *.* from that command.
robocopy x:\ c:\robocopy /s /z

Its default behavior is only to copy new or changed files.  It skips ones which already have identical copies in the destination.  You don't need any additional switches.

If you want you can use /PURGE or /MIR to delete files which exist in the destination but not in the source.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now