Operating System - HP-UX
1832765 Members
3319 Online
110045 Solutions
New Discussion

Restoring with FRECOVER utility

 
SOLVED
Go to solution
Naveen Shetty
Frequent Advisor

Restoring with FRECOVER utility

Hi,
Kindly if somehelp can be given on the ways to restore a directory in case of a backup taken thru fbackup.

Wih regards,
Naveen.
Queries
4 REPLIES 4
Wilfred Chau_1
Respected Contributor
Solution

Re: Restoring with FRECOVER utility

To recover files to original location:
# frecover -f /dev/rmt/0m -xv -i /source_directory

To recover files relative to the current working directory:
# cd /destination_directory
# frecover -f /dev/rmt/0m -xXv -i /source_directory
Bill Hassell
Honored Contributor

Re: Restoring with FRECOVER utility

man frecover?

Seriously, it is fairly easy. To restore /tmp back where it came from:

# frecover -xv -f /dev/rmt/ -i /tmp

To see the header on the tape:

# frecover -V - -f /dev/rmt/

To list the entire table of contents of the tape:

# frecover -I - -f /dev/rmt/

or index into a file:

# frecover -I /tmp/toc.txt -f /dev/rmt/

And finally, to restore a directory or set of files into a different directory, use -X as in:

# frecover -xXv -f /dev/rmt/ -i /tmp



Bill Hassell, sysadmin
Naveen Shetty
Frequent Advisor

Re: Restoring with FRECOVER utility

Thanks a lot for all of you.

It is very nice to see your quick replies..!

With Regards,
Naveen.
Queries
Helen French
Honored Contributor

Re: Restoring with FRECOVER utility

Hi Naveen Bhai =))

Try this:

frecover -xXv -f /dev/rmt/0m -i /source_path

frecover -xv -f /dev/rmt/0m -i /source_path ( original location)

Also see this for complete documentation:

http://www.docs.hp.com/hpux/onlinedocs/B2355-90129/B2355-90129.html

HTH,
Shiju
Life is a promise, fulfill it!