NetBackup™ Commands Reference Guide
- Introduction
- Appendix A. NetBackup Commands
Name
nbdb_restore — recover the database that is backed up to a directory using nbdb_backup
SYNOPSIS
-recover source_directory [-dbn database_name]
-recover -staging
On UNIX systems, the directory path to this command is /usr/openv/db/bin/
On Windows systems, the directory path to this command is install_path\NetBackup\bin\
DESCRIPTION
The nbdb_restore command restores all NetBackup databases that you protect with the nbdb_backup command. The databases are recovered from the specified staging directory. The command always runs pgdatabase.sql to recover all NetBackup databases.
OPTIONS
- -dbn database_name
Specifies the database name to recover. The possible databases are: NBDB, NBAZDB, or BMRDB.
If -dbn is used, the file name to restore from is
database_name.sgl
. For example,NBDB.sql
.If -dbn is not used, NetBackup restores from the file
pgdatabase.sql
.If you use the -staging option, do not specify the -dbn option. NetBackup always restores from the
pgdatabase.sql
file when you provide the -staging option.- -recover source_directory
The location of the backup. If you use the -staging option, do not specify the source_directory.
- -staging
Restores the NetBackup databases from the staging directory. Do not specify the source_directory with the -recover option.
EXAMPLES
Example 1 - Restore and recover NBDB from the copy in the default staging directory.
Example 1 - Restore and recover NBDB from the NBDB.sql
file that is present the /usr/openv/db/staging/
directory
nbdb_restore -dbn NBDB -recover /usr/openv/db/staging/
Example 2 - Recovers all NetBackup databases.
nbdb_restore -recover -staging