Re: [CentOS] Tar Compression issue

2014-03-21 Thread SilverTip257
On Fri, Mar 21, 2014 at 8:57 AM, Fred Smith
wrote:

> On Fri, Mar 21, 2014 at 10:55:33AM +, Andrew Holway wrote:
> > Dear Bonnie,
> >
> > Your not getting an answer because the emails you are sending look
> > like spam to most email filters.
> >
> > Thanks,
> >
> > Andrew
> >
> >
> >
> >
> >
> > On 18 March 2014 09:22, 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?
>
> Wild guess:
> Is the file, by anychance, somewhat over 4 gigs?
>

Our grandfathered homegrown backup solution that is in place for web
hosting at work tars up customer web content, which ends up being 15GB in
some cases.  And it's web content, so there's lots of files!

I'm sure if I took the time, I might find an even larger tarball -- but
10-15GB is pretty hefty.

I've had a problem, years past, when a particular compression tool
>

Would you kindly share the name of the compression tool?


> blew up on files over 4 gigs, because it requires an integer
> larger than a 32-bit int to hold the file offsets. I wouldn't
> really expect that to be a problem on Centos 5.x, even on a
> 32-bit system, but one does wonder
>

However ... we have a mix of 32-bit and 64-bit CentOS 5.10 systems that
create the backups (I speak of above) without a problem.  So 32 vs 64-bit
may not be the cause.


-- 
---~~.~~---
Mike
//  SilverTip257  //
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tar Compression issue

2014-03-21 Thread Fred Smith
On Fri, Mar 21, 2014 at 10:55:33AM +, Andrew Holway wrote:
> Dear Bonnie,
> 
> Your not getting an answer because the emails you are sending look
> like spam to most email filters.
> 
> Thanks,
> 
> Andrew
> 
> 
> 
> 
> 
> On 18 March 2014 09:22, 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?

Wild guess:
Is the file, by anychance, somewhat over 4 gigs? 
I've had a problem, years past, when a particular compression tool
blew up on files over 4 gigs, because it requires an integer
larger than a 32-bit int to hold the file offsets. I wouldn't
really expect that to be a problem on Centos 5.x, even on a
32-bit system, but one does wonder

Fred

-- 
 Fred Smith -- fre...@fcshome.stoneham.ma.us -
  "For him who is able to keep you from falling and to present you before his 
 glorious presence without fault and with great joy--to the only God our Savior
 be glory, majesty, power and authority, through Jesus Christ our Lord, before
 all ages, now and forevermore! Amen."
- Jude 1:24,25 (niv) -
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tar Compression issue

2014-03-21 Thread Andrew Holway
Dear Bonnie,

Your not getting an answer because the emails you are sending look
like spam to most email filters.

Thanks,

Andrew





On 18 March 2014 09:22, 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?
>
>
>
> Bonnie B Mtengwa
>
> Email:   bonnie.mten...@potraz.gov.zw |
>  bonni...@gmail.comWeb:
>  www.potraz.gov.zw
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tar Compression issue

2014-03-18 Thread Les Mikesell
On Tue, Mar 18, 2014 at 5:58 AM, Nicolas Thierry-Mieg
 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
 lesmikes...@gmail.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tar Compression issue

2014-03-18 Thread Mr Queue
On Tue, 18 Mar 2014 11:22:31 +0200
"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:
> 

FWIW you would likely be able to save a lot more bandwidth using xz
compression. In the below example you can create your compressed archive
all on the fly to your remote server.

$ tar -cJvf - target-file-dir/ | ssh r...@remote.server.com "cat
> /remote/archive.tar.xz"

-- 
Q:  What did Tarzan say when he saw the elephants coming over the
hill? A:"The elephants are coming over the hill."

Q:  What did he say when saw them coming over the hill wearing
sunglasses?
A:  Nothing, for he didn't recognize them.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Tar Compression issue

2014-03-18 Thread Nicolas Thierry-Mieg


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.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos