Operating System - HP-UX
1835413 Members
2768 Online
110078 Solutions
New Discussion

Recovery of a single file from tape

 
Sergey Yazikov
Occasional Contributor

Recovery of a single file from tape

Hello...

Does anybody know if it's possible to restore a single or just a group of files from a tape created with "make _recovery" command?
Any feedback is appreciated.

Sergey.
3 REPLIES 3
Patrick Wallek
Honored Contributor

Re: Recovery of a single file from tape

Yes you can.

You first have to bypass the boot header on the tape. To do this you do a:

mt -f /dev/rmt/?mn fsf 1 --> for 11.0
mt -t /dev/rmt/?mn fsf 1 --> for 10.20

From there you can use tar to look at what's on the tape.

tar -tvf /dev/rmt/?mn --> to see a listing.

Once you know what you want you can do a tar -xvf /dev/rmt/?mn.

If you do a 'tar -tvf' and break out of it, be sure to rewind the tape (mt -t/f /dev/rmt/?mn rew) and then skip over the boot file (see above syntax) before you start a 'tar -xvf ...'
James R. Ferguson
Acclaimed Contributor

Re: Recovery of a single file from tape

Hi:

Try this:

# mt -t /dev/rmt/0mn fsf 1
# tar -xvf /dev/rmt/0m

Note the no-rewind option with the first command.

...JRF...
Bruce Regittko_1
Esteemed Contributor

Re: Recovery of a single file from tape

Hi,

Unfortunately, no. There is no make_recovery command or option that supports restoring anything less than the whole archive.

But... the make_recovery tape is composed of two files. The first is a 2KB block size file that stores the LVM structures and the second is a 10KB block size file that is a tar (pax?) archive of some or all of VG00. It *may* be possible to recover files from the second file but it will take some investigative work on your part (unless someone else can help). I would start with the man pages for make_recovery, mt, and either tar or pax.

--Bruce
www.stratech.com/training