# pgBackRest Configuration # Backup storage on replica (pg2) # Archive destination: /pgbackrest [main] pg1-path={{ pg_data }} [global] repo1-path=/pgbackrest repo1-retention-full=2 repo1-retention-diff=7 repo1-retention-incr=7 repo1-bundle=y start-fast=y log-level-console=info log-level-file=debug archive-async=y archive-timeout=60 check-strict=y delta=y recovery-option=recovery_target_timeline=latest {% if inventory_hostname in groups['primary'] %} repo1-host=pg2 repo1-host-user=postgres {% endif %}