diff options
author | Alex Auvolat <alex@adnab.me> | 2022-09-26 13:05:53 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-09-26 13:05:53 +0200 |
commit | 711b788eb4f33069461f60e8d88340a74876e1f3 (patch) | |
tree | 6dff6c21cfd9aa5e869126e19bad9fed17451ac1 /cluster/prod/app/backup/deploy | |
parent | 5b889197464a23fc45f88adcede320d04b321260 (diff) | |
download | nixcfg-711b788eb4f33069461f60e8d88340a74876e1f3.tar.gz nixcfg-711b788eb4f33069461f60e8d88340a74876e1f3.zip |
Fix restic forget commands
Diffstat (limited to 'cluster/prod/app/backup/deploy')
-rw-r--r-- | cluster/prod/app/backup/deploy/backup-daily.hcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cluster/prod/app/backup/deploy/backup-daily.hcl b/cluster/prod/app/backup/deploy/backup-daily.hcl index 10020f2..f3da8aa 100644 --- a/cluster/prod/app/backup/deploy/backup-daily.hcl +++ b/cluster/prod/app/backup/deploy/backup-daily.hcl @@ -23,7 +23,7 @@ job "backup_daily" { config { image = "restic/restic:0.14.0" entrypoint = [ "/bin/sh", "-c" ] - args = [ "restic backup /mail && restic forget --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] + args = [ "restic backup /mail && restic forget --group-by paths --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] volumes = [ "/mnt/ssd/mail:/mail" ] @@ -69,7 +69,7 @@ EOH config { image = "restic/restic:0.14.0" entrypoint = [ "/bin/sh", "-c" ] - args = [ "restic backup /plume && restic forget --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] + args = [ "restic backup /plume && restic forget --group-by paths --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] volumes = [ "/mnt/ssd/plume/media:/plume" ] @@ -164,7 +164,7 @@ EOH config { image = "restic/restic:0.12.1" entrypoint = [ "/bin/sh", "-c" ] - args = [ "restic backup $NOMAD_ALLOC_DIR/consul.json && restic forget --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] + args = [ "restic backup $NOMAD_ALLOC_DIR/consul.json && restic forget --group-by paths --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] } @@ -207,7 +207,7 @@ EOH config { image = "restic/restic:0.12.1" entrypoint = [ "/bin/sh", "-c" ] - args = [ "restic backup /cryptpad && restic forget --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] + args = [ "restic backup /cryptpad && restic forget --group-by paths --keep-within 1m1d --keep-within-weekly 3m --keep-within-monthly 1y && restic prune --max-unused 50% --max-repack-size 2G && restic check" ] volumes = [ "/mnt/storage/cryptpad:/cryptpad" ] |