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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netbackup restrict where the restore goes 1

Status
Not open for further replies.

santhas

Technical User
Aug 27, 2003
35
AU
Hi Netbackup Gurus,

I have a question about limiting where the restore can be send to. I have given OPS the bp -r option so when the login they will be taken to recovery menu. Sometimes they forget to change the destination directory ( they have a dedicated restore directory to send all the restores) and restore over-writes everything in the real file system. Does Netbackup or bp has a an option to auto set the restore destination directory?

Thanks
San
 
I think for your purpose it might be necessary to write a script around the "bprestore" command with parameters (source path, destination path, rename file):

to restore data to an alternate path on the same client, you must create a rename file and then use the rename file in the bprestore command.

- create a rename file with an entry like

change source_path to destination_path

("change" and "to" are necessary syntax! The pathnames must be absolute)

- start the bprestore command with the following parameters:

/usr/openv/netbackup/bin/bprestore -l -R rename_file source_path
(-l renames the targets of UNIX links by using the -R option).

HTH,
mrjazz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top