Operating System - HP-UX
1833365 Members
3238 Online
110052 Solutions
New Discussion

Re: Recover selected files from ignite archive tape

 
SOLVED
Go to solution
Chrisl_2
Frequent Advisor

Recover selected files from ignite archive tape

HPUX 11iv2 PARISC RP3410

Hi all. I would like to recover all the files from a single directory from an ignite archive tape. Here is my ignite command:

/opt/ignite/binpa/make_tape_recovery -A -a /dev/rmt/0mn -x inc_entire=vg00 > ${FILE}

Here is how I am trying to recover the files:

cd /recover
mt -f /dev/rmt/0mn rew
mt -f /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0mn opt/imports/testing/*

I believe that should bring the files to /recover, however, I get nothing. I have also tried
tar xvf /dev/rmt/0mn /opt/imports/testing/*

I'm pretty certain that the files are on the tape...any ideas?

TIA!
6 REPLIES 6
TTr
Honored Contributor

Re: Recover selected files from ignite archive tape

The tar command restores the files to their original place so most likely the files were recovered sucessfully. Try using the -C option in tar.
Tingli
Esteemed Contributor

Re: Recover selected files from ignite archive tape

You need to run gunzip before tar -x as ignite files are tarred first then they are gzipped.
Chrisl_2
Frequent Advisor

Re: Recover selected files from ignite archive tape

What exactly would be unzipped, I mean where and how do I work that into

tar xvf /dev/rmt/0mn /opt/imports/testing/*


TIA!
Tingli
Esteemed Contributor

Re: Recover selected files from ignite archive tape

I am not sure about, but it might be something like that:

gunzip /dev/rmt/0mn | tar -xvf - /opt/imports/testing/*

Anyway, this is not proven yet and you need to check it yourself as I usually restore ignite file from remover server only.
Patrick Wallek
Honored Contributor
Solution

Re: Recover selected files from ignite archive tape

No, you DO NOT need to gunzip when using an Ignite TAPE. ONLY make_net_recovery files are gzip'd.


Also, with the syntax that Ignite uses, your files WILL be restored to the directory you are in. Ignite uses the relative path, as seen by the lack of a leading '/' in the path, so you are good there.

Try running your command without the '/*' at the end. I have a feeling that is what is confusing tar.

Try doing:

cd /recover
mt -f /dev/rmt/0mn rew
mt -f /dev/rmt/0mn fsf 1
tar xvf /dev/rmt/0mn opt/imports/testing
Dennis Handly
Acclaimed Contributor

Re: Recover selected files from ignite archive tape

>TTr: Try using the -C option in tar.

The -C option in tar only works when creating the tarfile.
Otherwise you need to use pax(1) -s option. (Or possibly gnu tar.)

But as Patrick said, the files are already relative.