Veritas NetBackup™ for PostgreSQL Administrator's Guide

Last Published:
Product(s): NetBackup (8.1.1)
  1. Introduction to NetBackup for PostgreSQL
    1.  
      About NetBackup for PostgreSQL Agent
    2.  
      Features supported by NetBackup for PostgreSQL Agent
    3.  
      The NetBackup for PostgreSQL Agent package
    4.  
      About the License for NetBackup for PostgreSQL Agent
    5.  
      NetBackup for PostgreSQL Agent Documentation
  2. Installing the NetBackup for PostgreSQL Agent
    1.  
      Planning the installation of NetBackup for PostgreSQL Agent
    2.  
      Verifying the operating systems and platforms
    3.  
      Installing prerequisites for NetBackup for PostgreSQL Agent
    4.  
      Post-installation requirements for NetBackup for PostgreSQL Agent
    5.  
      Describing the NetBackup for PostgreSQL Agent package
    6.  
      Installing the NetBackup for PostgreSQL Agent
    7.  
      Authenticating the password
    8.  
      Uninstalling the NetBackup for PostgreSQL Agent
  3. Configuring NetBackup for PostgreSQL
    1.  
      The nbpgsql.conf configuration file
    2.  
      Configuring PostgreSQL backups with DataStore policies
  4. The NetBackup for PostgreSQL backups and restores
    1. About PostgreSQL backups
      1.  
        The postgresql.conf configuration file
    2.  
      Performing PostgreSQL backups
    3.  
      Validating the PostgreSQL backups
    4.  
      Querying the PostgreSQL backups
    5.  
      Deleting backup information from the NetBackup catalog files
    6.  
      About PostgreSQL restore
    7.  
      Performing the PostgreSQLrestores
    8.  
      Redirected restores
    9.  
      Recovering the restores
    10.  
      Disaster recovery
  5. Troubleshooting for PostgreSQL
    1.  
      Troubleshooting errors when using NetBackup for PostgreSQL Agent
  6. Appendix A. NetBackup for PostgreSQL commands and conventions
    1.  
      About NetBackup for PostgreSQL Agent commands
    2.  
      NetBackup for PostgreSQL Agent command conventions
  7. Appendix B. NetBackup for PostgreSQL commands
    1.  
      nbpgsql -o backup
    2.  
      nbpgsql -o restore
    3.  
      nbpgsql -o query
    4.  
      nbpgsql -o delete

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

  1. Configure the parameters, in the postgresql.conf file or provide on the command line.
  2. 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]