1848284 Members
5904 Online
104024 Solutions
New Discussion

Re: frecover help

 
Zee
Advisor

frecover help


We use fbackup to backup the hpux system.

fbackup -f /dev/rmt/1m -i /ora/data
-i /ora/redo -i/ora/arch

Now i want to restore all three directories using frecover command on another hp-ux but under different directories.

like /ora/arch -> /ora/backup/arch
/ora/data -> /ora/backup/data
/ora/redo -> /ora/backup/redo


i know i can do these.

cd /ora/backup/data
frecover -x -F -i /ora/data -f /dev/rmt/1m
cd /ora/backup/redo
frecover -x -F -i /ora/redo -f /dev/rmt/1m
cd /ora/backup/arch
frecover -x -F -i /ora/arch -f /dev/rmt/1m

Is there any way i can achieve the above in one frecover command ?


Thanks,
5 REPLIES 5
Rodney Hills
Honored Contributor

Re: frecover help

Try-

cd /ora/backup/data
frecover -x -X -i /ora/data -i /ora/redo ...
cd ora
mv data ..
mv redo ..
mv arch ..
cd ..
rmdir ora

HTH

-- Rod Hills
There be dragons...
Zee
Advisor

Re: frecover help

Thanks for your reply, these are there different file systems, not enough disk space to restore all three in one filesystem.

Zee
Advisor

Re: frecover help

Thanks for your reply, these are three different file systems, not enough disk space to restore all three in one filesystem.

Bill Hassell
Honored Contributor

Re: frecover help

This can't be done in a single run for frecover. The -X option says to recover the files without leading directories so they will be stored in the current directory. You'll need to run it once for one set of files, then change directories and run frecover again for another set of files.


Bill Hassell, sysadmin
Steven E. Protter
Exalted Contributor

Re: frecover help

So do them one at a time.

frecover, copy the files where they need to go, repeat as many times as needed.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com