Operating System - HP-UX
1833042 Members
2508 Online
110049 Solutions
New Discussion

Re: file need to recovery from ignite backup

 
Viney Kumar
Regular Advisor

file need to recovery from ignite backup

Hi all

I need to restore the crontab file of root from ignite backup tape.

me using below process:--

#mt -t /dev/rmt/0mn fsf 1
#tar -xvf /dev/rmt/0m /var/spool/cron/crontabs/root
but getting below error:-

#Tar: blocksize = 0; broken pipe?

any other way to restore this file

Regards
Viney Kumar


6 REPLIES 6
Michael Steele_2
Honored Contributor

Re: file need to recovery from ignite backup

HI

Looks like a bad tape so verify the tape.

mt -t /dev/rmt/0m rew
mt -t /dev/rmt/0mn fsf 1
tar -tvf /dev/rmt/0mn

This will list out the table of contents. If you get the TOC then rerun your proceedure adding only

mt -t /dev/rmt/0m rew

...to the beginning.
Support Fatherhood - Stop Family Law
Michal Kapalka (mikap)
Honored Contributor

Re: file need to recovery from ignite backup

hi,

which version of HP-UX do you have ??? HP-UX 11.11, because if you have 11.23/31 you need to "fsf 22"

mikap
Hakki Aydin Ucar
Honored Contributor

Re: file need to recovery from ignite backup

Hi,

mt -f /dev/rmt/0mn status # Tape is in its driver ?
mt -f /dev/rmt/0mn rew # Rewind tape
tar -tvf /dev/rmt/0mn > /tmp/ignite.list # Get the list
mt -f /dev/rmt/0mn fsf 1 # Forward space first files for PA-RISC
mt -f /dev/rmt/0mn fsf 22 # Forward space first files for INTEGRITY
mkdir /my_recovery_dir
cd /my_recovery_dir
tar -xvf /dev/rmt/0mn var/spool/cron/crontabs/root
Viney Kumar
Regular Advisor

Re: file need to recovery from ignite backup

Hi All

I have tried with two tapes and getting below error



#tar -tvf /dev/rmt/0mn
Tar: blocksize = 0; broken pipe?

OS version-- HP-UX 11.11i
Regards
Viney Kumar
Michael Steele_2
Honored Contributor

Re: file need to recovery from ignite backup

bad tape - find another
Support Fatherhood - Stop Family Law
sujit kumar singh
Honored Contributor

Re: file need to recovery from ignite backup

Hi

after fsf 1
please give the following command
#tar -xvf /dev/rmt/0m var/spool/cron/crontabs/root


Please notice that the first leading / is omitted.

also can check after fsf 1 that

tar tvf /dev/rmt/0mn etc

regards
sujit