backup: fix volume variable

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-11-24 21:42:45 +01:00
parent e3713bd9a5
commit d619c91e04
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
systemd_timer_start_on_creation: false
systemd_timer_script_content: |
#!/usr/bin/env bash
BKP_DIR="{{ postgres_ha_cont_vol }}/backup/{{ postgres_ha_db_name }}"
BKP_DIR="{{ postgres_ha_cont_data_vol }}/backup/{{ postgres_ha_db_name }}"
rm -vfr "${BKP_DIR}"
/usr/bin/docker exec -i {{ postgres_ha_cont_name }} \
pg_dump -F directory -f "/backup/{{ postgres_ha_db_name }}" \