How to do it…

We will start by looking at Barman's main configuration file:

  1. As root on malcolm, open the /etc/barman.conf file for editing. This file contains global options for Barman. Once you are familiar with the main configuration options, I recommend that you set the default compression method by uncommenting the following line:
compression = gzip
  1. Add the configuration file for the angus server. Drop the angus.conf file, containing the following lines, into the /etc/barman.d directory:
[angus] description =  "PostgreSQL Database on angus" active = off archiver = on backup_method = rsync ssh_command = ssh postgres@angus conninfo = host=angus user=barman dbname=postgres
  1. You have just added the angus server to the list of Postgres ...

Get PostgreSQL 10 Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.