--- title: "Preparing Password File for PostgreSQL Processing" description: "You can use PostgreSQL account credentials that are stored in the password file to connect Veeam Agent to the PostgreSQL database system." canonical: "https://helpcenter.veeam.com/docs/agentforlinux/userguide/postgresql_pass_file_commline.html" breadcrumb: "User Guide > Performing Backup > Creating Backup Jobs > Creating Backup Job with Command Line Interface > Configuring Database Processing Settings > Specifying PostgreSQL Processing Settings > Preparing Password File for PostgreSQL Processing" dateModified: "2026-11-02" --- # Preparing Password File for PostgreSQL Processing You can use PostgreSQL account credentials that are stored in the password file to connect Veeam Agent to the PostgreSQL database system. If you want to use a password file for authentication, create the `.pgpass` file in the home directory of the `root` user. The password file must have the following contents: ``` :::: ``` where: - `` — name of the host where the PostgreSQL database system is located. - `` — number of the free port that Veeam Agent will use to connect to the PostgreSQL database system. - `` — name of the PostgreSQL database. - `` — name of the account that Veeam Agent will use to connect to the PostgreSQL database system. - `` — password of the account that Veeam Agent will use to connect to the PostgreSQL database system. For example: ``` srv01:5432:mydb:postgres:P@ssw0rd ``` For more information about the password file, see [PostgreSQL documentation](https://www.postgresql.org/docs/9.3/libpq-pgpass.html).