Barman can identify if server is running as primary or standby - "barman status servername"
If running as primary then ignore primary_conninfo parameter when backup is taken on primary.
If running as standby use primary_conninfo to switch wal on primary when finalizing backup on standby.
Then you dont have to adjust conf file each time cluster doing a fail-over
Barman can identify if server is running as primary or standby - "barman status servername" If running as primary then ignore primary_conninfo parameter when backup is taken on primary. If running as standby use primary_conninfo to switch wal on primary when finalizing backup on standby.
Then you dont have to adjust conf file each time cluster doing a fail-over
Running Barman version 3.2.0