Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

tar of file 5GB

SOLVED
Go to solution
Jairo Campana
Trusted Contributor

tar of file 5GB

consult:
I did backup (file of 5GB.) with tar1.13.25 that its permit files > 2gb

my questions is:
for restore I must use the tar of default hpux11.0 (that it does not allow backup >2gb)or have use the tar1.13.25 .

legionx
13 REPLIES
Steven E. Protter
Exalted Contributor

Re: tar of file 5GB

HP has a tar upgrade that allows files up to 8 GB.

Make sure the target filesystem has largefiles enabled before you restore.

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
Patrick Wallek
Honored Contributor
Solution

Re: tar of file 5GB

This is one of the problems with using something like tar for large files. As far as I know you MUST use an equivalent version of tar to do the restore since the native version of tar does not handle files larger than 2GB.

You could try using the default version of tar, but I have a feeling it will not work. You should install the tar 1.13.25 that you used on your other machine.

An even better option would have been to use fbackup to back up the file. fbackup handles large files and is also quite portable between HP-UX platforms and is native to HP-UX so there is nothing else to install.
Jairo Campana
Trusted Contributor

Re: tar of file 5GB

you did not understand my question
legionx
Pete Randall
Outstanding Contributor

Re: tar of file 5GB

You'll have to use the 1.13.25 (or latest) version of tar.


Pete

Pete
Michael Steele_2
Honored Contributor

Re: tar of file 5GB

Use 'cksum' on the original and copied 5gb file to verify integrity of data.

cksum original_file
cksum copied_file

And I believe you'll need 13.25 on the destination machine. So just 'ftp' or 'rcp' it over. Should be in /usr/local/sbin but 'which tar'.

Also, here's the download site:

http://hpux.cict.fr/hppd/hpux/Gnu/tar-1.13.25/
Support Fatherhood - Stop Family Law
Jairo Campana
Trusted Contributor

Re: tar of file 5GB

not understand my question
jairo.bak 5GB.
have a backup with tar1.13.25(supoort >2gb) ok.
in /usr/local/bin/tar -cvf /dev/rmt/0m jairo.BAK
so,for restore use tar1.13.25:
/usr/local/bin/tar -xvf /dev/rmt/0m

or I cant use the tar default of HPUx(/usr/bin/tar)without problems
legionx
twang
Honored Contributor

Re: tar of file 5GB

As my understanding, you move the backup to another machine without tar 1.13.25. I believe you should install the tar 1.13.25 to untar the backup.
A. Clay Stephenson
Acclaimed Contributor

Re: tar of file 5GB

Once you use Gnu tar the only safe method is to use Gnu tar to restore. The patched version of HP's tar (that allows up to 8GB files) might work but Gnu tar WILL work.
If it ain't broke, I can fix that.
Jairo Campana
Trusted Contributor

Re: tar of file 5GB

yes,yeeeessss, twang: the questions is
I can or I cannot .
I must install in the other server tar1.13.25 for restore
legionx
Patrick Wallek
Honored Contributor

Re: tar of file 5GB

Yes, you must install Gnu Tar 1.13.25 on the server you are restoring to.
Pete Randall
Outstanding Contributor

Re: tar of file 5GB

That's what I said, I think! You'll have to use the 1.13.25 version of tar to restore the file on the other server. If it's not already installed, you will have to install it.


Pete




Pete
Caesar_3
Esteemed Contributor

Re: tar of file 5GB

Hello!

Yes you must use the version that you made a tar for open it so you need to work with tar1.13.25 that you used!

Also if you will have a newest version it also should work because of the suport backware.

Caesar
Donny Jekels
Respected Contributor

Re: tar of file 5GB

!!! IMPORTANT: THESE EXAMPLES ONLY WORK IN KORN SHELL (KSH) !!!

Use the UNIX pipe and split commands:

Export command:

echo|exp file=>(split -b 1024m - expdmp-) userid=scott/tiger tables=X

Note: You can put any "exp" parameters. This is working only in ksh

Import command:

echo|imp file=<(cat expdmp-*) userid=scott/tiger tables=X

Splitting and compressing at the same time:

Export command:

echo|exp file=>(compress|split -b 1024m - expdmp-) userid=scott/tiger tables=X

Import command:

echo|imp file=<(cat expdmp-*|zcat) userid=scott/tiger tables=X
"Vision, is the art of seeing the invisible"