System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

tar is not working with a file more than 8GB

 
Highlighted
Super Advisor

tar is not working with a file more than 8GB

Hi,

Please advise me on what to do to make tar backup and compress files that are more than 8GB.

Regards,
Berenger
12 REPLIES 12
Highlighted
Exalted Contributor

Re: tar is not working with a file more than 8GB

Shalom,

Make smaller files.

tar had to be patched to get up to the 8 GB file limit. I know of no versions that will make files bigger than that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Highlighted
Valued Contributor

Re: tar is not working with a file more than 8GB

Hi,

try gnu tar (gtar) , you need to download and install this freeware on your system

Regards,
Javed
Never Give Up
Highlighted
Valued Contributor

Re: tar is not working with a file more than 8GB

Highlighted
Honored Contributor

Re: tar is not working with a file more than 8GB

>> I know of no versions that will make files bigger than that.

Actually, tar can **CREATE** files of any size.

The HP-UX native tar cannot **READ/ARCHIVE** files that are larger than 8GB in size.

Highlighted
Honored Contributor

Re: tar is not working with a file more than 8GB

GNU "tar" is the easy answer. Apparently
it's up to version 1.20 now.

http://www.gnu.org/software/tar/

The problem with "tar" was a quirky (and
limited) format for storing file sizes. One
relatively simple change squeezed a few more
bits in to get from 2GB to 8GB. The next
(even less compatible) change switched from
ASCII octal digits to raw binary, which
should be good for a while.
Highlighted
Honored Contributor

Re: tar is not working with a file more than 8GB

Hi,

You can use fbackup instead of tar. If the archive is to be moved to another OS, then as SEP said make the file smaller.

Use split command to split the large file to smaller sizes; then use tar and gzip and move the file to destination server. Unzip and untar it there; then cat the split files to the original one.

If the original file is 10000MB file; you could split it to two 5000MB files as below:

split -b5000m mylargefile
[it will create two 5000Mb files called xaa & xab] ;

tar/gzip and move to the destination host.
untar/gunzip, you will get back the xaa/ab

cat x* > mylargerfile

Regards,
Rasheed Tamton.
Highlighted
Honored Contributor

Re: tar is not working with a file more than 8GB

Dear berag

tar support lesser than 2GB size for backup
if u want more more than 2GB use fbackup

thanks and regards

Sajjad Sahir
Highlighted
Honored Contributor

Re: tar is not working with a file more than 8GB

> tar support lesser than 2GB size [...]

GNU "tar" has no such limitation. Not at
2GB, not at 8GB. (It handles long file
names, too.)

Yes, there are many ways to work around the
limitations of an old "tar" program, but, as
I said, the _easy_ way is to use a better
"tar" program, like, say, GNU "tar".
Highlighted
Acclaimed Contributor

Re: tar is not working with a file more than 8GB

Hi Beraq:

> Rasheed: You can use fbackup instead of tar.

Beware that this is fine if your copy is going to be from HP-UX and to HP-UX (only!). 'fbackup' and 'frecover' are HP-UX ONLY.

As Steven said, the GNU tar doesn't have an 8GB limitation. As an open-source tool you could easily install it on any UNIX/LINUX necessary, too. Thus, it is one avenue that you might want to explore.

A better definition of your environments and requirements would lead to better, more definitive solutions.

Regards!

...JRF...