Ransomware attackers specifically target and attempt to destroy backup systems to increase the probability of payment. Hardening your system is critical. Please ensure you have reviewed your platform security using the Security Hardening Checklist
Cohesity

COHESITY Documentation

Explore our documentation to get started, discover products & new features, access troubleshooting guides, register sources, platforms support.

Products
Data Security Alliance
Visit Cohesity.com
Demos
Support
Blogs
Developers
Partner Portals
Cohesity Community
© 2026 Cohesity, Inc. All Rights Reserved.
Terms of Use|
Privacy Policy|
Legal|
  1. Home
  2. NetBackup™ Commands Reference Guide
  3. Appendix A. NetBackup Commands
  4. nbdb_restore
NetBackup™ Commands Reference Guide

Name

nbdb_restore — recover the database that is backed up to a directory using nbdb_backup

SYNOPSIS

nbdb_restore -recover source_directory [-dbn database_name]

nbdb_restore -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

SEE ALSO

See nbdb_backup.

See nbdb_move.

See nbdb_ping.

See nbdb_unload.

Feedback

Was this page helpful?
Previous

nbdb_ping

Next

nbdb_unload

Feedback

Was this page helpful?