Use new backup removal policy
This commit is contained in:
parent
a6b9c24c03
commit
e6488d1f88
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
FROM domaindrivenarchitecture/dda-backup
|
FROM domaindrivenarchitecture/dda-backup:1.0.4
|
||||||
|
|
||||||
# Prepare Entrypoint Script
|
# Prepare Entrypoint Script
|
||||||
ADD resources /tmp
|
ADD resources /tmp
|
||||||
|
|
|
@ -5,7 +5,8 @@ set -o pipefail
|
||||||
function main() {
|
function main() {
|
||||||
file_env AWS_ACCESS_KEY_ID
|
file_env AWS_ACCESS_KEY_ID
|
||||||
file_env AWS_SECRET_ACCESS_KEY
|
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/'
|
backup-fs-from-directory '/var/backups/' 'export/'
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue