Veritas NetBackup™ for PostgreSQL Administrator's Guide
- Introduction to NetBackup for PostgreSQL
- Installing the NetBackup for PostgreSQL Agent
- Planning the installation of NetBackup for PostgreSQL Agent
- Verifying the operating systems and platforms
- Installing prerequisites for NetBackup for PostgreSQL Agent
- Post-installation requirements for NetBackup for PostgreSQL Agent
- Describing the NetBackup for PostgreSQL Agent package
- Installing the NetBackup for PostgreSQL Agent
- Authenticating the password
- Uninstalling the NetBackup for PostgreSQL Agent
- Configuring NetBackup for PostgreSQL
- The NetBackup for PostgreSQL backups and restores
- About PostgreSQL backups
- Performing PostgreSQL backups
- Validating the PostgreSQL backups
- Querying the PostgreSQL backups
- Deleting backup information from the NetBackup catalog files
- About PostgreSQL restore
- Performing the PostgreSQLrestores
- Redirected restores
- Recovering the restores
- Disaster recovery
- Troubleshooting for PostgreSQL
- Appendix A. NetBackup for PostgreSQL commands and conventions
- Appendix B. NetBackup for PostgreSQL commands
Querying the PostgreSQL backups
The nbpgsql -o query command lists previously backed up files according to the options that you specify. You can configure these parameters from the nbpgsql.conf file or set the parameters using the nbpgsql command.
The parameter -S is the required parameter. You can use the -Cand -P options to define a different client and policy.
By default, NetBackup uses the values that you have configured in the nbpgsql.conf file.
Before you run a query, you must set the following parameter in the nbpgsql.conf file or provide on the command line:
CLIENT_NAME
POLICY_NAME
To query a backup
- Configure the parameters, in the
postgresql.conffile or provide on the command line. - Run the following command:
nbpgsql -o query -S master_server [-C client_name] [-P policy_name]
For example, to query a backup from client ClientA, run the following command:
nbpgsql -o query -S master_server [-C ClientA]
For example, to list backup files with the policy name policy_name, run the following command:
nbpgsql -o query -S master_server [-P policy_name]