feat(servers): local backup only keeps 2 recent snapshots.
This commit is contained in:
parent
98b97a80f3
commit
08d5d08061
1 changed files with 4 additions and 1 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue