Operating System - HP-UX
1755209 Members
6026 Online
108830 Solutions
New Discussion

tar is unable to backup file > 2GB

 
John Jayaseelan
Super Advisor

tar is unable to backup file > 2GB

Hi,

tar & cpio utilities are giving following error
while trying to backup file > 2GB.

tar: file size > 2GB not dumped.

Any idea why how this can be solved.

Thanks
John Jayaseelan

 

 

P.S. This thread has been moved from Disk to HP-UX > sysadmin. - Hp Forum Moderator

6 REPLIES 6
Vincent Fleming
Honored Contributor

Re: tar is unable to backup file > 2GB

tar is an older UNIX utility, and has a 2GB file limit.

You can use a number of other utilities. What's available depends on your OS.

GNU tar is available for most platforms, and does not have this 2GB limitation. You can use fbackup/frecover also on many platforms.

Good luck,

Vince
No matter where you go, there you are.
Stuart Abramson_2
Honored Contributor

Re: tar is unable to backup file > 2GB

He's right above.

I have attached unix binaries for "gtar", compiled for large files. See if this works.

You must have your file systems set up for "large files" to use it.
Tim Sanko
Trusted Contributor

Re: tar is unable to backup file > 2GB

64 BIT tar on 11.11/11.0 on hp/ux has no problem. I believe that you are on a 32 bit tar, or have initiated the tar with cron that has a
2GB ulimit.

Solution put on cron patch for hp/ux and/or insure you are using 64Bit.

Tim
Michael Tully
Honored Contributor

Re: tar is unable to backup file > 2GB

tar and cpio have had this problem for a long time.
If your not moving data to another platform, then 'fbackup/frecocver' is definitely a far better tool. It provides a deal of flexibility over tar and cpio. (even the GNU versions). Check out the man page
$ man fbackup
$ man frecover

Here's alink to the GNU versions which suport >2Gb
http://hpux.connect.org.uk/hppd/hpux/Gnu/tar-1.13.25/
http://hpux.connect.org.uk/hppd/hpux/Gnu/cpio-2.5/
Anyone for a Mutiny ?
John Jayaseelan
Super Advisor

Re: tar is unable to backup file > 2GB

Hi All,

Thanks for the update.

HP-UX B.11.00 U 9000/898 is the Operating System used.

Thanks
John Jayaseelan
Super Advisor

Re: tar is unable to backup file > 2GB

Stuart Abramson,

I am not able to open the attached gtar binary. Could you please email the file to john.jayaseelan@caravan-club.co.uk.

Thanks