[Discuss] large log file transfer

Jerry Natowitz j.natowitz at rcn.com
Tue Jun 23 09:04:06 EDT 2015


>From memory, so there might be a typo or two 

Often gzip will reduce logfiles greatly in size. for that, all you need is: 

gzip -9 logfile.ext 

transfer: logfile.ext.gz 

on receiving end: 

gzip -d logfile.ext.gz 


Assuming you actually need to transfer in small chunks: 

split -10 logfile.ext logfilesplit 
for f in logfilesplit* ; do 
gzip -9 $f 
done 

transfer: logfilesplit*.gz 

On the receiving end: 

for f in logfilesplit*.gz ; do 
gzip -d $f 
done 

cat logfilesplit* > logfile.ext 

----- Original Message -----

From: "John Malloy" <jomalloy at gmail.com> 
To: discuss at blu.org 
Sent: Tuesday, June 23, 2015 8:44:19 AM 
Subject: [Discuss] large log file transfer 

I have a log file (325MB) that I need to transfer from a restricted 
network, that I cannot plug a USB into. 

Is there an easy way to "split up" the log file into smaller chunks and Zip 
it to get it over the net? 

Thanks! 


John Malloy 
jomalloy at gmail.com 
_______________________________________________ 
Discuss mailing list 
Discuss at blu.org 
http://lists.blu.org/mailman/listinfo/discuss 




More information about the Discuss mailing list