[CentOS] Tar Compression issue

Les Mikesell lesmikesell at gmail.com
Tue Mar 18 14:33:00 UTC 2014


On Tue, Mar 18, 2014 at 5:58 AM, Nicolas Thierry-Mieg
<Nicolas.Thierry-Mieg at imag.fr> wrote:
>
>
> On 03/18/2014 10:22 AM, Bonnie B Mtengwa wrote:
>> I have a file Server CentOS 5.10, its on the internet, so I compress all csv
>> into one file using (tar -czvf compressed_files.tar.gz  *.csv)  on this
>> server so that I can download them as one compressed file to save bandwidth,
>> Disk space on this server available is 50Gig, so when I copy the files onto
>> Redhat EL 5.9 and decompress them using (tar -zxvf *.gz) It decompresses
>> maybe 80% then get error:
>>
>>
>>
>> gzip: stdin: unexpected end of file
>>
>> tar: Unexpected EOF in archive
>>
>> tar: Unexpected EOF in archive
>>
>> tar: Error is not recoverable: exiting now
>>
>>
>>
>> what might be the issue here?
>
> corrupt file when downloading?
> try gunzip -t on the server to confirm archive is ok on that end.
> and you could md5sum as well, to test the integrity of what you dl'd.

Maybe the classic ftp text vs, binary transfer?   Personally I would
have used rsync over ssh with the -z option for compression since it
is one simple command, very efficient, repeatable and restartable.

-- 
  Les Mikesell
     lesmikesell at gmail.com



More information about the CentOS mailing list