Fix backup hostname in forget
This commit is contained in:
parent
5b73dfa92b
commit
92acf1b0c1
2 changed files with 5 additions and 2 deletions
|
@ -59,8 +59,8 @@ _success
|
|||
|
||||
rm -rf "$BACKUP_LOCATION"
|
||||
|
||||
echo "forgetting old backups for $(hostname)"
|
||||
docker compose run --rm app forget --host "$(hostname)" --prune \
|
||||
echo "forgetting old backups for {{ ansible_facts.hostname }}"
|
||||
docker compose run --rm app forget --host "{{ ansible_facts.hostname }}" --prune \
|
||||
--keep-last 7 \
|
||||
--keep-daily 14 \
|
||||
--keep-weekly 16 \
|
||||
|
|
|
@ -7,6 +7,9 @@ watchtower_env:
|
|||
WATCHTOWER_CLEANUP: true
|
||||
WATCHTOWER_SCHEDULE: "0 27 20 * * *"
|
||||
|
||||
# use to disable watchtower
|
||||
# WATCHTOWER_NO_PULL: true
|
||||
|
||||
WATCHTOWER_NOTIFICATIONS: email
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_FROM: "{{ svc.name }}@serguzim.me"
|
||||
WATCHTOWER_NOTIFICATION_EMAIL_TO: "{{ admin_email }}"
|
||||
|
|
Reference in a new issue