The server configuration file¶
Create a new file, called pg.conf, in /etc/barman.d directory,
with the following content:
[pg]
description = "Our main PostgreSQL server"
conninfo = host=pg user=barman dbname=postgres
backup_method = postgres
# backup_method = rsync
The conninfo option is set accordingly to the section “Preliminary
steps: PostgreSQL connection”.
The meaning of the backup_method option will be covered in the
backup section of this guide.
If you plan to use the streaming connection for WAL archiving or to
create a backup of your server, you also need a streaming_conninfo
parameter in your server configuration file:
streaming_conninfo = host=pg user=streaming_barman dbname=postgres
This value must be chosen accordingly as described in the section “Preliminary steps: PostgreSQL connection”.