Hello,
we have Patroni PG cluster with 3 nodes in async mode. Is there any tutorial or showcase on how to make a consistent backup with PITR (streaming replication) of such a cluster? At first, we don't want to take a backup of each node. They are pretty big (500G) with lots of changes per day and backup all of them take a lot of space (accounting for WALs, retention policies, etc). My aim is to backup only the current primary node with WALs, etc. When failover or switchover happens, then a backup is performed from the new primary. Is this scenario feasible? Or what is the best approach to this?
At first, we use veeam to take an incremental snapshot backup, but their integration with PG is pretty bad. So we move to the barman. Currently, I set up streaming-only backup on all of the nodes. Then run barman backup all and barman cron. This performs backup only on active primary because there is no replication slot on replicas. But there are lots of errors in the log about that.
It is important to note that failover/switchover takes place pretty often because we use that feature to upgrade system packages, etc.
Thanks for any advice, David