Using bpdbsbdb2 for a database restore
The bpdbsbdb2 command lets you run a recovery template that the NetBackup Recovery wizard creates.
At the command line, type the following:
Windows: install_path\netbackup\bin\bpdbsbdb2 -restore -r -t templ_name -i instance_name
UNIX: /usr/openv/netbackup/bin/bpdbsbdb2 -restore -r -t template_name -i instance_name
The -r runs a template, and the -t identifies the template.
For example:
Windows: bpdbsbdb2 -restore -r -t \db2\restore_templates\full_restore.tpl -i DB2INST
UNIX: /usr/openv/netbackup/bin/bpdbsbdb2 -restore -r \ -t /db2/restore_templates/full_restore.tpl -i DB2INST
Restore templates do not reside in a predetermined location on the master server. They are considered to be temporary in nature and should reside on the client. If the full path is not specified as part of the restore template name, the file might not be found.
You can create a script from a template with bpdbsbdb2.