Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

directed restores on Unix platform

Status
Not open for further replies.

TinoW

IS-IT--Management
Sep 7, 2005
7
SG
1)

I want to recover the hull of an oracle database to a different location on the same host in order to build another database:

e.g.

/oracle/<AA>/920_64/ should be restored to /oracle/<BB>/920_64

How can I do this with Legato?

2)

If I want to redirect several files of a backup to different locations, how can I do it within one restore session:

e.g.

/oracle/<AA>/920_64/ and /sapmnt/<AA> both backed up in the same backup should be restored to /oracle/<BB>/920_64 and /sapmnt/<BB> by running only a single restore

Thanks for any suggestions


 
Hi TinoW

1) You can do it either with the GUI:
nwrecover
select saveset
recover option: relocate data to /oracle/<BB>

or

with a recover command:
$ recover -s <server> -d /oracle/<BB> /oracle/<AA>/920_64

2)Sevral files to different location must be recovered with different recover commands.
 
Thanks thats clear so far.

I have several filesystems e.g.

/oracle/<AA>
/oracle/<AA>/920_64
/oracle/<AA>/mirrlogA
/usr/sap/<AA>
/sapmnt/<AA>
.
.
.

1)
Your procedure works for

/oracle/<AA>/920_64
/oracle/<AA>/mirrlogA

were I can do a

recover -c <client> -d /oracle/<BB> -a /oracle/<AA>/920_64
recover -c <client> -d /oracle/<BB> -a /oracle/<AA>/mirrlogA



2)
But how do I handle

/oracle/<AA>
/usr/sap/<AA>
/sapmnt/<AA>


I cannot use

recover -c <client> -d /sapmnt/<BB> -a /sapmnt/<AA>

because it will create a subdirectory /sapmnt/<BB>/<AA>


I could use some kind of linking like

recover -c <client> -d /tmp/sapmnt -a /sapmnt/<AA>

were I have a link from /tmp/sapmnt/<AA> --> /sapmnt/<BB>


Is there no possibility to rename the files during restore like in other backup tools?


3)
A special case is /oracle/<AA>. if I only want to restore the content of this filesystem, but not the filesystems below like /oracle/<AA>/920_64.
What does a

recover -c <client> -d /tmp/oracle/ -a /oracle/<AA>

do (assuming I have a link /tmp/oracle/<AA> --> /oracle/<BB>)

Does it recover all filesystems below /oracle/<AA>/920_64.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top