1753767 Members
5883 Online
108799 Solutions
New Discussion юеВ

Single file restore

 
SOLVED
Go to solution
Sanjiv Sharma_1
Honored Contributor

Single file restore

Hi,

I have an Ignite Backup of K460 Server with HP-UX 10.20/Ignite UX ver. A.3.6.82.
Command Used:
# make_tape_recovery -a /dev/rmt/0mn -x inc_entire=vg00 -Iv

I have /home filesystem in vg00. In home filesystem I have a file (abc_q) which is corrupted today. I have an Ignite Backup as on 1st July. Can I restore this file only?
What will be the command?

Thanks,
Raje.
Everything is possible
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: Single file restore

Hi,

Yes it is quite easy. The tape is written this way. A bootable header with the necessary files followed by a tar archive.

Have your tape loaded. Change to your relevant device, and also use the no-rewind option.

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

That should it.

Michael
Anyone for a Mutiny ?
Stefan Farrelly
Honored Contributor

Re: Single file restore


I think the main ignite archive image on tape is in tar format. You need to fast forward past the first record without rewinding the tape then you should be able to see your tar backup image and use tar to extract the single file you want. eg;

mt -t /dev/rmt/0m rew (rewind tape)
mt -t /dev/rmt/0mn fsf 1 (fast forward 1, dont rewind tape)
Then try tar; tar tvf /dev/rmt/0mn
If it produces an error skip another reocrd;
mt -t /dev/rmt/0mn fsf 1
Then try tar again. Once the tar listing works you can repeat the exercise except this time use tar xvf /dev/rmt/0mn
Im from Palmerston North, New Zealand, but somehow ended up in London...