feat(servers): local backup only keeps 2 recent snapshots.

This commit is contained in:
CronyAkatsuki 2025-08-23 12:35:04 +02:00
parent 98b97a80f3
commit 08d5d08061

View file

@ -9,6 +9,9 @@
"--keep-weekly 5"
"--keep-monthly 12"
];
pruneOptsLocal = [
"--keep-last 2"
];
checkOpts = [
"--read-data-subset=10%"
"--with-cache"
@ -21,7 +24,7 @@ in {
passwordFile = config.age.secrets.restic-server-local-pass.path;
repository = "/var/lib/backup";
paths = opts.paths;
pruneOpts = opts.pruneOpts;
pruneOpts = opts.pruneOptsLocal;
checkOpts = opts.checkOpts;
};
server = {