autoprune backups older than 14 days

This commit is contained in:
ChaotiCryptidz 2021-12-31 13:03:21 +00:00
parent f1568d0914
commit c396a98c0e

View file

@ -6,11 +6,15 @@ let
OnBootSec = "1m";
OnCalendar = "daily";
};
pruneOpts = [
"--keep-within 14d"
];
in {
services.restic.backups.hetzner-vm = {
user = backupUser;
paths = backupPaths;
timerConfig = timerConfig;
pruneOpts = pruneOpts;
repository = "b2:Backups-HetznerVM:/";
passwordFile = "/secrets/restic-password";
environmentFile = "/secrets/restic-env";
@ -19,6 +23,7 @@ in {
user = backupUser;
paths = backupPaths;
timerConfig = timerConfig;
pruneOpts = pruneOpts;
repository = "b2:Cryptidz-Backup:HetznerVM";
passwordFile = "/secrets/restic-password-cassie";
environmentFile = "/secrets/restic-env-cassie";