Fix backup hostname in forget

This commit is contained in:
Tobias Reisinger 2024-08-30 14:50:03 +02:00
parent 5b73dfa92b
commit 92acf1b0c1
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 5 additions and 2 deletions

View file

@ -59,8 +59,8 @@ _success
rm -rf "$BACKUP_LOCATION" rm -rf "$BACKUP_LOCATION"
echo "forgetting old backups for $(hostname)" echo "forgetting old backups for {{ ansible_facts.hostname }}"
docker compose run --rm app forget --host "$(hostname)" --prune \ docker compose run --rm app forget --host "{{ ansible_facts.hostname }}" --prune \
--keep-last 7 \ --keep-last 7 \
--keep-daily 14 \ --keep-daily 14 \
--keep-weekly 16 \ --keep-weekly 16 \

View file

@ -7,6 +7,9 @@ watchtower_env:
WATCHTOWER_CLEANUP: true WATCHTOWER_CLEANUP: true
WATCHTOWER_SCHEDULE: "0 27 20 * * *" WATCHTOWER_SCHEDULE: "0 27 20 * * *"
# use to disable watchtower
# WATCHTOWER_NO_PULL: true
WATCHTOWER_NOTIFICATIONS: email WATCHTOWER_NOTIFICATIONS: email
WATCHTOWER_NOTIFICATION_EMAIL_FROM: "{{ svc.name }}@serguzim.me" WATCHTOWER_NOTIFICATION_EMAIL_FROM: "{{ svc.name }}@serguzim.me"
WATCHTOWER_NOTIFICATION_EMAIL_TO: "{{ admin_email }}" WATCHTOWER_NOTIFICATION_EMAIL_TO: "{{ admin_email }}"