The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk continue anhtt Shell Programming and Scripting 3 03-11-2008 12:08 PM
continue example xramm Shell Programming and Scripting 7 07-03-2007 04:10 AM
Continue Script when File Found Jose Miguel Shell Programming and Scripting 7 11-07-2006 08:43 PM
Will the continue function work ???? kamlesh_p Shell Programming and Scripting 2 10-12-2005 09:27 AM
continue the suspended jobs killerserv UNIX for Advanced & Expert Users 6 01-10-2002 03:09 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-15-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Continue an 'scp' tranfser?

I was in the middle of transferring a file over a slow link (768k) using 'scp'. The system on this end got rebooted by an overzealous co-worker... I've got 500+ megs of the file here and 725 megs to go. I'd really hate to start over. I fear that the answer to my question is that I will have to start over. But I was wondering if anyone here knows if there is a way to continue a failed file transfer.
  #2 (permalink)  
Old 12-15-2005
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
Unless the file transfer software that you are using supports continuation of interrupted transfers, there is really no way that you can continue from where you were cut off.

Just one thing... never tried it.. if it is a large text file, you could check how many lines have been transferred to the remote end and send across the remaining lines using tail. But if it is an archive/binary/something similar, there is no hope.
  #3 (permalink)  
Old 12-16-2005
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
You could try using the split command. On the source system, do:

$ split -b [bytes of xfered file] [filename]

You'll get two files. scp the second one over and then, hmm, try cat'ing them together into a single file.

You should try it with a much smaller file first to make sure it works for you of course. I tried it with a small compressed file and it worked for me Sun to Linux.

split a small util into two, scp each part over and then cat them into the util again.

Carl
  #4 (permalink)  
Old 12-19-2005
deckard's Avatar
deckard deckard is offline
Registered User
  
 

Join Date: Jul 2002
Location: Ohio
Posts: 135
Gave up

Oh well... I wound up just retrying and grabbing the whole file overnight. The 'split' suggestion sounds interesting enough to experiment with. Thanks.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0