How to schedule PostgreSQL backups from NetBackup for Linux

How to schedule PostgreSQL backups from NetBackup for Linux

Article: 100041371
Last Published: 2018-09-25
Ratings: 2 0
Product(s): NetBackup

Description

You can initiate PostgreSQL backups in NetBackup using the DataStore policy to call a backup script.

Solution

This article provides an sample script to schedule an automatic backup using the NetBackup Administration Console. You must copy the script to a preferred location, but ensure that the path is a white listed path. Use this script when configuring the DataStore policy for backups.

Note: You must modify the sample script according to your environment.

Steps 

To backup PostgreSQL database using the backup script

  1. Authenticate the password in the PostgreSQL environment.
  2. Download the sample script and copy it to a preferred chosen location.
  3. Rename the script pgsql_backup_script.txt to pgsql_backup.
  4. Modify the path according to the environment.
  5. In NetBackup Administration Console, create an automatic full backup schedule in the Policy>Schedule>Attributes tab.
  6. Under the Backup Selections tab, provide the path to the modified script as the backup selection.
  7. Under the Client tab, specify the MySQL server.
  8. Specify the parameters for the backup operation in the nbpgsql.conf file.
  9. Run the backup using the NetBackup Administration Console.

Applies to                                                                                                                   PostgreSQL version 9 and later

Operating systems                                                                                                             Red Hat Enterprise Linux (RHEL) 6.8 and later
SUSE Enterprise Linux Server 11 SP3 and later

Disclaimer:
Please note that this script is provided as is and is a sample script only. The script is not supported by Veritas technical support.
It is the responsibility of the customer to modify the script to take into account specific requirements and variables in his/her environment.
 

Was this content helpful?