From a933eecdd1d049841b2db521688ca6b78930ede3 Mon Sep 17 00:00:00 2001 From: ace Date: Wed, 24 Jul 2024 12:22:38 +0300 Subject: [PATCH] fix backup/restore and update vars --- defaults/main.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/main.yaml b/defaults/main.yaml index ed00920..014d2bd 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -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 }}"