Operating System - HP-UX
1834275 Members
1883 Online
110066 Solutions
New Discussion

Ftp problem - Using split???

 
SOLVED
Go to solution
Adam Noble
Super Advisor

Ftp problem - Using split???

Hi all,

We are trying to download a lot of data across the internet from another server. The files are generally around 90GB in size and the sessions are regularly timing out midway through the transfer. We are simply using ftp for this. Is using split an option to make the files more manageble. Also when you have used split on a file how do you then re-create it at the other end. I expected the man page to tell me this.

Cheers
5 REPLIES 5
Matti_Kurkela
Honored Contributor
Solution

Re: Ftp problem - Using split???

For example, to join a file that's been split into three parts:

cat part1 part2 part3 > whole

Or one part at a time:

mv part1 whole
cat part2 >>whole
rm part2
cat part3 >>whole
rm part3

Maybe the manual writer thought it was too simple to be worth mentioning...

MK
MK
Hasan  Atasoy
Honored Contributor

Re: Ftp problem - Using split???

hi cheers ;

on the souce machine split the file by split command .eg

split -b 1024000k filename

above command creates 1gb files


ftp them ;

on the target

cat x* > filename


Hasan
VK2COT
Honored Contributor

Re: Ftp problem - Using split???

Hello,

You already got an advice about splitting the large file.

Some additional options to consider:

a) Why not compress the files before
sending via FTP (gzip, or even better bzip2).
The idea is to decrease the total
amount of data sent over the network.

b) Replace FTP with RSYNC (with, or without
SSH support). It is a more efficient
protocol for file synchronization between
sites.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Adam Noble
Super Advisor

Re: Ftp problem - Using split???

Thanks Matti for making me feel better about myself...Ha ha. Didn't realise it was quite as simple as that
Matti_Kurkela
Honored Contributor

Re: Ftp problem - Using split???

Sorry, my comment was not intended to slight you, but I see it's possible to read it that way too...

What I meant is, it's probably obvious to HP's Unix shell wizards who wrote the documentation of HP-UX commands.

MK
MK