1752729 Members
5822 Online
108789 Solutions
New Discussion юеВ

Re: make_recovery

 
SOLVED
Go to solution
Antonio_13
Occasional Contributor

make_recovery

I have a make_recovery tape and i would like to
retrieve one only file contents from the tape
Is it possible?
Thanks
Antonio Marziano
7 REPLIES 7
G. Vrijhoeven
Honored Contributor
Solution

Re: make_recovery

Hi,

Extracting files from tape
After the system recovery tape has been created, a single file or
files can be extracted from tape by seeking to the tape position where
the archive is located. The mt command can be used to seek to the
appropriate location, and pax or tar can be used to extract files from
the archive.

To extract a single file from the recovery archive:

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

Extracting files from tape can take a long time, especially when
archives are large.

check out man make_recovery

Hope this will help,

Gideon
Mateja Bezjak
Respected Contributor

Re: make_recovery

Hi,

Extracting files from tape: After the system recovery tape has been created, a single file or files can be extracted from tape by seeking to the tape position where the archive is located. The mt command can be used to seek to the appropriate location, and pax or tar can be used to extract files from the archive.

To extract a single file from the recovery archive:

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

Check also man make_recovery

Regards,
Mateja
T G Manikandan
Honored Contributor

Re: make_recovery

Hello,
Insert your ignite tape
when the server boots interrupt at startup.
Use
main menu>sea
to search for bootable devices
check the path for the tape drive

main menu>boot

Then
# mt -t /dev/rmt/0mn fsf 1

no-rewind option with the 'mt' command to skip over the LIF written on the tape by Ignite

# tar -xvf /dev/rmt/0m
use 'tvf' to list the contents of the tape.

Thanks
G Manikandan
Steve Steel
Honored Contributor

Re: make_recovery

Hi

This should workto extract a single file from the recovery archive:

# mt -t /dev/rmt/0mn fsf 1 # this moves forward

# tar -xvf /dev/rmt/0m filename # use the regular tar command


To be sure as this is theoretical use
tar -tvf first to see if the tape reads and then repeat to extract the file.

Remember
Extracting from tape can take a long time, when
archives are large.

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Victor_5
Trusted Contributor

Re: make_recovery

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

Note: for /dev/rmt/0mn, you must use "n" option.

Clemens van Everdingen
Honored Contributor

Re: make_recovery

Hi,

Off course all answers are correct.

Just one remark !

It is not needed to boot from the tape as TG mentioned.

Just skip the first part of the tape with the mt command and then use tar to restore the file from the tape.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
T G Manikandan
Honored Contributor

Re: make_recovery

Sorry for the mistake.
Thanks for pointing it out