Find answers to your technical questions and learn how to use our products
Search suggestions:
To perform a passwordless server backup, grant the server database backup permission to the mega user.
Open the console on the active Configuration Server.
Use the SSH client to log in to the active Configuration Server.
cd /home/mega
vi .pgpass
<database hostname>:<port>:<database name>:<database user>:<database user password>
<database host> is the IP or VIP address of the database host server.
<database host>
<port> is the server port number. The default value is 5432.
<port>
<database name> is the name of the database for which you create a backup. You can type an asterisk (*) to create a backup of all databases.
<database name>
<database user> is the database username.
<database user>
<database user password> is the database user password.
<database user password>
For example, you can type the following:
192.168.1.1:5432:*:postgres:dbuserpassword
:wq!
sudo chmod 0600 .pgpass
Previous Topic
Next Topic