Querying the PostgreSQL backups
The nbpgsql -o query command lists previously backed up files according to the options that you specify.
The parameter -S is the required parameter. You can use the -C and -P options to define a different client and policy.
To query a backup
- Configure the parameters on the command line.
- Run the following command:
nbpgsql -o query -S primary_server [-C client_name] [-P policy_name]
For example, to query a backup from client ClientA, run the following command:
nbpgsql -o query -S primary_server [-C ClientA]
For example, to list backup files with the policy name policy_name, run the following command:
nbpgsql -o query -S primary_server [-P policy_name]