Operating System - HP-UX
1836857 Members
2427 Online
110110 Solutions
New Discussion

List of files from the tape

 
SOLVED
Go to solution
Tom Spence_1
Regular Advisor

List of files from the tape

Hi,

I need to learn how to use fbackup or restore. My tapes are old about 3 years ago. So how can I look the list from the tapes? Once I found one file from tape then how can I get the file from tape? Someone used fbackup with full backup.

I apprecaite your help.

-Tom
Thinking Snow!
4 REPLIES 4
Mark Greene_1
Honored Contributor

Re: List of files from the tape

frecover will restore an fbackup. You use the -r option to recover a full backup. You can use the -N -v option combination to get a list of what is on the tape without actually restoring anything from it. Please see the man page for frecover for compelte details.

HTH
mark
the future will be a lot like now, only later
S.K. Chan
Honored Contributor
Solution

Re: List of files from the tape

To list the index (assuming drive /dev/rmt/0m)..
# frecover -I /tmp/index -f /dev/rmt/0m
==> The file /tmp/index will contain the list of files. From that file take note of the EXACT path of the file/dir that you want to retrieve.

Some examples of retrival ..

To retrieve relative .. (file /opt/apps/filea)
# cd /tmp
# frecover -f /dev/rmt/0m -v -x -F -i /opt/apps/filea
==> That will extract "filea" and place it in /tmp.

To retrieve absolute ..
# cd /
# frecover -f /dev/rmt/0m -v -x -X -i /opt/apps/filea
==> That will extract "filea" and create the directory /opt/apps as well. If you want to everwrite existing "filea" add option "-o" to the command.

Make sure you check the man pages for details.
Justo Exposito
Esteemed Contributor

Re: List of files from the tape

Hi Tom,

You can use SAM in order to do it the restore, using the on-line backup/restore option.

Regards,

Justo.
Help is a Beatiful word
Bill Hassell
Honored Contributor

Re: List of files from the tape

frecover is the key. First, get the save date information from the volume header:

frecover -V - -f /dev/rmt/0m

(where /dev/rmt/0m is whatever tape device you are using) Note that the header will not only tell you the date but volume number for multi-tape backups and the number of times the tape was used for fbackup volumes.

frecover -I - -f /dev/rmt/0m | more

will show the entire index of all files. Due to the length, you should redirect the output into a file as in:

frecover -I /var/tmp/fb.index -f /dev/rmt/0m

Note that fbackup always places a complete index at the beginning of the tape, so these tasks complete very quickly (compared to tar or cpio), and each volume will have the same information with one additional bit: the current tape volume will know which files were saved on the preceeding volume and the last tape knows where every file is located by volume number.


Bill Hassell, sysadmin