Streaming replicas
Barman does not have a mode to initialize the newly restored server as a streaming replica of the original. This would require setting primary_conninfo in either recovery.conf or postgresql.conf of the newly restored system. However, Barman only knows how to connect to the backup source as the user we've configured for backup purposes.
Since this could be considered a security exploit, it's up to us to specify the correct DSN necessary to transform the new server to a streaming replica. Barman does, however, provide a parameter named --standby-mode, which will set create a standby.signal file in Postgres 12 and above, or add the equivalent standby_mode setting to recovery.conf for older installations.
Still, we need to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access