NetBackup™ for PostgreSQL Administrator's Guide
- Overview
- Managing PostgreSQL instances and databases
- Managing PostgreSQL environment credentials
- Protecting PostgreSQL instances and databases
- Restoring PostgreSQL Instances and Databases
- Things to know before you restore the PostgreSQL instances and databases
- About the pre-restore check
- Restore PostgreSQL instance and database
- Restore target options
- Pre-restore checks for PostgreSQL
- Steps to perform recovery after restore operation
- Steps to perform after Restore and Recovery for PostgreSQL cluster deployment
- Limitations
- Troubleshooting PostgreSQL operations
- Troubleshooting tips for NetBackup for PostgreSQL
- Error during PostgreSQL credential addition
- Error during the PostgreSQL instances and databases discovery phase
- Error during the PostgreSQL Protection Plan Creation
- Error while subscribing protection plan to PostgreSQL asset
- Error while removing PostgreSQL asset
- Error while backup of PostgreSQL asset
- Error while restoring PostgreSQL asset image
- API for PostgreSQL instances and databases
- Index
Protect PostgreSQL instances and databases
Use the following procedure for subscribing a protection plan to PostgreSQL instance and database. When you subscribe an asset to a protection plan, you assign predefined backup settings to the asset.
Note:
The RBAC role assigned to a user must have access to the assets that you want to manage and also to the protection plans you want to use.
To protect a PostgreSQL instance or database:
- On the left pane, click PostgreSQL.
- On the Instances tab or Databases tab, click the box for the instance or the database and click Add protection.
- Select a protection plan and click Next.
- You can edit one or more of the following settings:
Schedules and retention
Change when backups occur and the backup start window.
Schedules:
Full: Complete instance backup using snapshot/pg_basebackup/pg_dumpall and completes database-backup using pg_dump utility.
Differential Incremental: Based on the previous backup timestamp, NetBackup identify the changed set of transaction logs (WAL files) and perform its backup.
Backup options
Adjust the Database options like Job limit and Backup method.
Snapshot: This option is used to take the snapshot of an instance. For Windows - VSS snapshot method is used. For Linux - LVM snapshot method is used.
pg_basebackup: This utility of PostgreSQL performs the backup of an instance. It is recommended in the case of non-LVM deployment.
pg_dumpall: This utility of PostgreSQL performs logical backup of instance. It is recommended in the case of non-LVM deployment.
pg_dump: This utility of PostgreSQL performs logical backup of an individual database.
Note:
In the case of snapshot-based backups, it is recommended to keep the archive directory and the data directory in separate locations.
Note:
If a PostgreSQL instance has tablespaces configured, then use
pg_dumpallbackup method. In the case ofpg_dumpallandpg_dumpbackup method, incremental backups are not supported.
- Click Protect.
Note:
If the PostgreSQL instance is deployed on the root LVM, then Snapshot backup method is not recommended.
In case of cluster deployment of PostgreSQL, instances can be protected of primary or standby node.