Restoring a file from Ignite backups

Restoring a file from Ignite backups (HP-UX)

Q: I use Ignite on all my systems but occasionally I need to restore a single file or a directory. Is it possible to restore one file from the tape?  How about from a network Ignite server?

A: Yes, you can do both. The Ignite image on tape consists of two parts: the bootable HP-UX memory image followed by a tar archive of the files. You have to skip the bootable kernel area.

Here are the two techniques:

From the Ignite Tape (assuming 2mn for tape device):

mt -f /dev/rmt/2mn rewind
mt -f /dev/rmt/2mn fsf 1  <– for PARISC
(or)
mt -f /dev/rmt/2mn fsf 22 <– for Itanium/Integrity

tar xvf /dev/rmt/2mn  etc/lvmtab

NOTE: No leading / as this is how the files were saved.

From Ignite image on a network server:

– On the Ignite server:

cd /var/opt/ignite/recovery/archives/<hostname>

Check for the available images and select the one you want to use.

gunzip -c <image_name> | tar -xvf – <path  without />

NOTE: there is an important “-” after xvf.  For example, to restore /opt/ssh/etc directory from the image file “2010-02-22,09:34“, use this command:

gunzip -c 2010-02-22,09:34|tar -xvf – opt/ssh/etc

(Note: no leading / for opt) This will restore the opt/ssh/etc
dir relative to the current path, which can be copied to the final destination system.

– See more at: http://serviceitdirect.com/blog/restoring-file-ignite-backups#sthash.8gBqyDcJ.dpuf


Tags: