Enable immich backups

This commit is contained in:
Ivan R. 2024-11-25 01:10:22 +05:00
parent 0d0731a8e4
commit 0e8fd7a231
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -4,4 +4,5 @@ set -e
docker exec postgresql-backuper-1 pg_dumpall -U postgres -h postgresql --no-password -f /backups/postgresql.sql
docker exec restic-1 restic --repo s3:https://{{ s3_host }}/{{ s3_bucket }} -o s3.bucket-lookup=dns backup /data/postgresql
docker exec restic-1 restic --repo s3:https://{{ s3_host }}/{{ s3_bucket }} -o s3.bucket-lookup=dns backup /data/immich
docker exec restic-1 restic --repo s3:https://{{ s3_host }}/{{ s3_bucket }} -o s3.bucket-lookup=dns forget --keep-daily 7 --keep-weekly 2