Veritas NetBackup™ for PostgreSQL Administrator's Guide
- Introduction to NetBackup for PostgreSQL
- Installing the NetBackup for PostgreSQL Agent
- Configuring NetBackup for PostgreSQL
- The NetBackup for PostgreSQL backups and restores
- About PostgreSQL backups
- Troubleshooting for PostgreSQL
- Appendix A. NetBackup for PostgreSQL commands and conventions
- Appendix B. NetBackup for PostgreSQL commands
The nbpgsql.conf configuration file
The NetBackup for PostgreSQL configuration (nbpgsql.conf)
file is contains the parameters that you must specify for the respective operations. It contains predefined settings and is located on the client. When parameters are not configured in the nbpgsql.conf
file, then the default parameter value takes precedence. You can configure the parameters in the nbpgsql.conf
file or set them on the command line, where the command line parameters take precedence. The nbpgsql.conf
file keeps you from providing the parameters every time you run operations.
The nbpgsql.conf
file is located in the following locations:
(Windows)
install_path\NBPostgreSQLAgent_8.1_AMD64\nbpgsql.conf
.(Linux RHEL)
install_path/NBPostgreSQLAgent_8.1_linuxR_x86/nbpgsql.conf
(Linux SUSE)
install_path/NBPostgreSQLAgent_8.1_linuxS_x86/nbpgsql.conf
Table: The nbpgsql.conf parameters lists the nbpgsql.conf file parameters:
Table: The nbpgsql.conf parameters
Parameters | Description | Required parameter for | Default value |
---|---|---|---|
DB_PORT | Configures the PostgreSQL database server port number on which the backup or the restore should be performed. The port number verifies the PostgreSQL service status. | Backups | When you do not specify the port number, the default is 5432. |
DB_USER | Configures the PostgreSQL database user name. | Backups | When you do not specify the user name, the default is postgres. |
PGSQL_LIB_INSTALL_PATH | (Linux) Configures the | Backups | No default value. |
MASTER_SERVER_NAME | Specifies the NetBackup master server for backups and restores. | Backups and restores | No default value. |
POLICY_NAME | Specifies the DataStore policy name. | Backups | No default value. |
SCHEDULE_NAME | Identifies the backup schedule that you configured while creating the DataStore policy. | Backups | When you do not specify the policy name, the defaults is . |
CLIENT_NAME | Defines the NetBackupclient that has the NetBackup for PostgreSQL Agent. | Redirected restores and query | When you do not specify the client name, the default is the current host. |
SNAPSHOT_SIZE | (Linux) Specifies the snapshot size for LVM snapshots. Specify the snapshot size in kilobytes, megabytes, or gigabytes as KB, MB, or GB respectively. | LVM backups | When you do not specify the snapshot size, the default is |
DB_BACKUP_ID | DB_BACKUP_ID represents the backup image name. This parameter configures the backup file when you want to restore or delete a specific backup. | Restoring backups using the backup image name. | No default value. |
PGSQL_TARGET_DIRECTORY | Specifies the destination directory where you want to restore the backups. | Restores | No default value. |
NBPGSQL_LOG_LEVEL | The NBPGSQL_LOG_LEVEL parameter lets you set the logging level for the The
| The log levels help to control the amount of information that you want to access for troubleshooting errors. | When you do not specify the log level, the default is level 1. |
NBPGSQL_LOG_SIZE | Configures the | You can specify the value according to the events that you want to write into the logs. | When you do not specify the log size, the default is 10MB. |