backup: fix volume variable
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
e3713bd9a5
commit
d619c91e04
|
@ -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 }}" \
|
||||
|
|
Loading…
Reference in New Issue