Barman -
: Ensure the Barman home directory is owned by the barman user: chown barman:barman /var/lib/barman .
Each PostgreSQL server you back up needs its own .conf file. Here is a text template for a standard setup:
CREATE USER barman WITH SUPERUSER PASSWORD 'your_secure_password'; Use code with caution. Copied to clipboard : barman
2. Server-Specific Configuration ( /etc/barman.d/pg-server.conf )
[barman] ; User that runs Barman barman_user = barman ; Where backup data is stored barman_home = /var/lib/barman ; Directory for individual server config files configuration_files_directory = /etc/barman.d ; Log file location log_file = /var/log/barman/barman.log log_level = INFO ; Default compression for backups compression = gzip Use code with caution. Copied to clipboard : Ensure the Barman home directory is owned
CREATE USER streaming_barman WITH REPLICATION PASSWORD 'your_secure_password'; Use code with caution. Copied to clipboard Troubleshooting Checklist
: Use barman check to verify your text configurations are correct. Copied to clipboard : 2
This file defines the environment for the Barman user and log storage.