From 1e9cd59b501565ad82ae7a3d457d0240b1ff4cf2 Mon Sep 17 00:00:00 2001 From: Clemens Geibel Date: Fri, 22 Jul 2022 11:22:54 +0200 Subject: [PATCH] Pin dda-backup to 1.0.5 --- infrastructure/docker-backup/image/Dockerfile | 2 +- infrastructure/docker-backup/image/resources/backup.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/infrastructure/docker-backup/image/Dockerfile b/infrastructure/docker-backup/image/Dockerfile index 20e4c73..9b6d4f0 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.5 # 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 9803839..b7fe1be 100755 --- a/infrastructure/docker-backup/image/resources/backup.sh +++ b/infrastructure/docker-backup/image/resources/backup.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -xo pipefail +set -o pipefail function main() { @@ -11,7 +11,8 @@ function main() { file_env POSTGRES_DB file_env POSTGRES_PASSWORD file_env POSTGRES_USER - file_env RESTIC_DAYS_TO_KEEP 14 + file_env RESTIC_DAYS_TO_KEEP 30 + file_env RESTIC_MONTHS_TO_KEEP 12 backup-roles 'oc_' backup-db-dump