Veritas NetBackup™ for PostgreSQL Administrator's Guide
- Introduction to NetBackup for PostgreSQL
- Installing the NetBackup for PostgreSQL Agent
- Configuring NetBackup for PostgreSQL
- NetBackup for PostgreSQL backup and restore
- About PostgreSQL backups
- 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.conf
file 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]