Picking up Where FTP Leaves Off
Updated September 12, 2002
Created November 19, 2001


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

Incomplete and difficult file transfer Workaround (could be problematic ftp transfer):

If you are transferring a large file from here to there and you get interrupted you don't have to retransmit everything you originally sent.

For Example:
If you already sent 426312452 bytes out of a total 600123421 then do this:

dd if=myfile of=missing_piece bs=1 skip=426312452

Then transmit the missing_piece file.

The user on the other end can put the file together in several ways:

cat piece1 >newfile
cat piece2 >>newfile
... (keep going until you've added all the pieces together)

Don't forget to md5sum the newfile when you put it all back together to make sure it is the same as myfile (the original file).

You can also put the file together by:

copy piece1 /b + piece2 /b newfile /b

The reason I wrote this article is that I tried sending an ISO image (650M) about 3 times to someone. I would get way out there (~400MB) and it would crash. On the last try I sent everything but the last 8K. 8K, can you believe it, I sent everything but the last 8K, and it is all useless without that last drop of data. I realized, just before I deleted the file I transmitted, that I could just use dd to grab the last 8K and send that as piece-2. I then sent instructions to my friend on how to put it back together. He compared the MD5Sum when he was done and it all worked out. I could have saved a lot of time by picking up at the 400MB mark the first time. Next time I know what to do.

Also, using "wget -c" will pick up where you leave off on an ftp download.
Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html