vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
https://postgresql-cluster.org
MIT License
1.69k stars 411 forks source link

"basebackup" has to exists on patroni_create_replica_methods? #457

Closed lkthomas closed 1 year ago

lkthomas commented 1 year ago

https://github.com/vitabaks/postgresql_cluster#restore-and-cloning

The link above shown an example of pgBackRest and WAL-G, but why "basebackup" is on both example? are they essential to be coexists?

vitabaks commented 1 year ago

It is used as a fallback method. That is, if it was not possible to create a replica from the backup (for example, there is no backup yet, during the initial deployment), the following method from the list will be used, in this case it is "basebackup".

You can redefine variables and comment out "basebackup" if its use is unacceptable in your environment.