Solved

Xcopy across a slow network

Posted on 2008-10-08
4
1,147 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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

A brief overview to explain gateways, default gateways and static routes OR NO - you CANNOT have two default gateways on the same server, PC or other Windows-based network device. In simple terms a gateway is formed when a computer such as a serv…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

11 Experts available now in Live!

Get 1:1 Help Now