Please enter search query.
Search <book_title>...
Veritas NetBackup™ for PostgreSQL Administrator's Guide
Last Published:
2019-06-28
Product(s):
NetBackup (8.2)
- Introduction to NetBackup for PostgreSQL
- Installing the NetBackup for PostgreSQL Agent
- Configuring NetBackup for PostgreSQL
- NetBackup for PostgreSQL backup and restore
- About PostgreSQL backups
- Troubleshooting for PostgreSQL
- Appendix A. NetBackup for PostgreSQL commands and conventions
- Appendix B. NetBackup for PostgreSQL commands
Authenticating the password
Authenticating the 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
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.
Authenticating the password on Windows
To authenticate the password
- Run the following command:
>echo%AppData%
O/P: C:\Users\Administrator\AppData\Roaming
- Create
postgresql
directory inC:\Users\Administrator\AppData\Roaming
path. - Create
pgpass.conf
in thepostgresql
directory. - In the
pgpass.conf
file update the following and then save the file.hostname:port:database:username:password
For example,
localhost:5432:*:postgres:test_123
- Restart the postgres services.
Authenticating the password on Linux
To authenticate the password
- Create
.pgpass
file in the user's home directory. - Edit the
.pgpass
file as:hostname:port:database_name:username:password
- To change the
.pgpass
file permissions, run the following command:$ chmod 0600 ~/.pgpass