Are you setting up replication or the traditional rsync/SSH method? Barman Manual
To make the configurations above work, you must execute these SQL commands on your to create the necessary users: Create the Barman User :
This file defines the environment for the Barman user and log storage.
: Use barman check to verify your text configurations are correct.