Operating System - HP-UX
1753507 Members
5303 Online
108795 Solutions
New Discussion юеВ

Re: How to recover a particular file to a temp location from the tape

 
Peter Godron
Honored Contributor

Re: How to recover a particular file to a temp location from the tape

Hi,
you should be able to recover a file from your backup and rename/copy the file to a different location with pax.
See:
http://docs.hp.com/en/B2355-60127/pax.1.html
melvyn burnard
Honored Contributor

Re: How to recover a particular file to a temp location from the tape

pax reads cpio and tar archives, not fbackup archives
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Albert_31
Trusted Contributor

Re: How to recover a particular file to a temp location from the tape

Hello Bala,

Check these options of frecover, I think these are teh ones you are looking for..

frecover
-x
-N (for checking)
-X
-i
-F

regards

Albert
Bill Hassell
Honored Contributor

Re: How to recover a particular file to a temp location from the tape

frecover is the command to use. I will assume that your tape device is /dev/rmt/0m so to see the header (date/time of backup, etc):

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

To see all the files on the tape:

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

Note that the -I - can also be sent to a file as in:

frecover -I /var/tmp/my_index -f /dev/rmt/0m

To recover a single file to different location:

cd /var/tmp
frecover -xvF -f /dev/rmt/0m -i /etc/fstab

This assumes that you want to extract the file /etc/fstab from the tape and store it in /var/tmp/fstab. If you want to create the same directory structure but start in a different directory:

cd /var/tmp
frecover -xvX -f /dev/rmt/0m -i /etc/fstab

This recovers fstab to the directory /var/tmp/etc/fstab

The man page helps a lot in these cases.


Bill Hassell, sysadmin