Operating System - HP-UX
1833596 Members
3663 Online
110061 Solutions
New Discussion

Using 'frecover' to restore to different directories.

 
BOB BARBA
Contributor

Using 'frecover' to restore to different directories.


I have a tape created some time ago using fbackup. It contains a test environment.
For example:
/test/conc
/test/product

Both the conc and the product directories contain countless subdirectories.

I want to restore the conc and product directoies together with their respective files and sub-directories into a new file system. The new names would be:
/develop/conc
/develop/product.

I have tried moving to the /develop directory and using the -F option in frecover to perform the restore but that seems to remove all leading sub-directories including the ones below /conc and /product (i.e. all files end up in the /develop directory).

Will frecover allow me to perform this type of restore? Any advice would be gratefully received. BobB

4 REPLIES 4
Andreas Voss
Honored Contributor

Re: Using 'frecover' to restore to different directories.

Hi,

try the -X option

cd /develop
frecover -r -X ....
mv test/* .
rmdir test

Regards
Patrick Wallek
Honored Contributor

Re: Using 'frecover' to restore to different directories.

I don't use frecover that much but what if you made a symbolic link so that the directory /test is actually pointing to /develop?

lrwxr-xr-x 1 root sys 5 Jan 5 10:06 test -> develop

That way anything restore to /test will automatically go to /develop.
CHRIS_ANORUO
Honored Contributor

Re: Using 'frecover' to restore to different directories.

Use SAM Backup and Recovery menu -> Interactive Backup And Recovery" ->Recovery option and choose "Set Addtional Option" Then check "Place Files In Non Root Directory"

You can then specify the directory you want.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Suhas_2
Regular Advisor

Re: Using 'frecover' to restore to different directories.

Bob,
Pls try the following steps.
1> cd /
2> ln -s /devlop /test
3> mt -t /dev/rmt/ rew
4> /usr/sbin/frecover -xvyoXf /dev/rmt/ -i /test 2>/tmp/trial.log &
(for detailed info abt the argumants given to frecover pls
see the manpage.)

Hope this helps...
Suhas.
Never say "Die"