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