NetBackup™ for PostgreSQL Administrator's Guide
- Introduction to NetBackup for PostgreSQL
- Configuring NetBackup for PostgreSQL
- NetBackup for PostgreSQL backup and restore
- About PostgreSQL backups
- Performing PostgreSQL backups
- Validating the PostgreSQL backups
- Querying the PostgreSQL backups
- Deleting backup information from the NetBackup catalog files
- About PostgreSQL restore
- Performing the PostgreSQL restores
- Redirected restores
- Recovering the restores
- Disaster recovery
- Troubleshooting for PostgreSQL
- Appendix A. NetBackup for PostgreSQL commands and conventions
- Appendix B. NetBackup for PostgreSQL commands
- Index
Authenticating the PostgreSQL environment password
Authenticating the PostgreSQL environment password keeps you from specifying the password every time you run a backup. The password file stores the password and the application picks the password every time you run a backup.
The password file for Windows is pgpass.conf and for Linux it is .pgpass file.
The password file must contain the lines of the following format:
hostname:port:database:username:password
In Linux, after you edit the .pgpass file, change the .pgpass file permissions.
To authenticate the password
- Run the following command:
>echo%AppData%O/P: C:\Users\Administrator\AppData\Roaming - Create
postgresqldirectory inC:\Users\Administrator\AppData\Roamingpath. - Create
pgpass.confin thepostgresqldirectory. - In the
pgpass.conffile update the following and then save the file.hostname:port:database:username:passwordFor example,
localhost:5432:*:postgres:test_123 - Restart the postgres services.
To authenticate the password
- Create
.pgpassfile in the user's home directory. - Edit the
.pgpassfile as:hostname:port:database_name:username:password
- To change the
.pgpassfile permissions, run the following command:$ chmod 0600 ~/.pgpass