From e6488d1f88dbab4cfd48202870789648ba198d20 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 15 Jul 2022 15:02:01 +0200 Subject: [PATCH] Use new backup removal policy --- infrastructure/docker-backup/image/Dockerfile | 2 +- infrastructure/docker-backup/image/resources/backup.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/infrastructure/docker-backup/image/Dockerfile b/infrastructure/docker-backup/image/Dockerfile index 20e4c73..ca69455 100644 --- a/infrastructure/docker-backup/image/Dockerfile +++ b/infrastructure/docker-backup/image/Dockerfile @@ -1,4 +1,4 @@ -FROM domaindrivenarchitecture/dda-backup +FROM domaindrivenarchitecture/dda-backup:1.0.4 # Prepare Entrypoint Script ADD resources /tmp diff --git a/infrastructure/docker-backup/image/resources/backup.sh b/infrastructure/docker-backup/image/resources/backup.sh index 921163f..5a6a066 100755 --- a/infrastructure/docker-backup/image/resources/backup.sh +++ b/infrastructure/docker-backup/image/resources/backup.sh @@ -5,7 +5,8 @@ set -o pipefail function main() { file_env AWS_ACCESS_KEY_ID file_env AWS_SECRET_ACCESS_KEY - file_env RESTIC_DAYS_TO_KEEP 14 + file_env RESTIC_DAYS_TO_KEEP 30 + file_env RESTIC_MONTHS_TO_KEEP 12 backup-fs-from-directory '/var/backups/' 'export/' }