fix backup/restore and update vars

This commit is contained in:
ace 2024-07-24 12:22:38 +03:00
parent ef13bdb04d
commit a933eecdd1
Signed by: ace
GPG Key ID: 2C08973DD37A76FD

View File

@ -24,6 +24,8 @@ postgresql_cacert_ca_trust_anchors_update: true
## WAL-G backup and restore options
postgresql_wal_g_install: false
postgresql_wal_g_backup_enable: false
postgresql_wal_g_backup_permanent_enable: false
postgresql_wal_g_backup_retention_enable: false
postgresql_wal_g_restore_from_backup: false
postgresql_wal_g_force_delete_and_restore: false
postgresql_wal_g_config_name: ".walg.json"
@ -83,10 +85,10 @@ postgresql_default_parameters:
hot_standby: 'off'
postgresql_backup_parameters:
archive_command: "{{ postgresql_archive_command if postgresql_wal_g_backup_enable else 'cd .' }}"
archive_command: "{{ postgresql_archive_command if postgresql_wal_g_install else 'cd .' }}"
postgresql_restore_parameters:
restore_command: "{{ postgresql_restore_command if postgresql_wal_g_backup_enable else 'cd .' }}"
restore_command: "{{ postgresql_restore_command if (postgresql_wal_g_install or postgresql_wal_g_restore_from_backup) else 'cd .' }}"
postgresql_restore_pitr_parameters:
recovery_target_time: "{{ postgresql_wal_g_pitr }}"