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