add a prune option to restic

This commit is contained in:
Andreas Zweili 2022-01-29 15:26:42 +01:00
parent f4cd8555a8
commit 6bd0dbb513
1 changed files with 6 additions and 1 deletions

View File

@ -9,6 +9,11 @@
extraBackupArgs = [
"--exclude-file=/home/${username}/.nixos/modules/restic/excludes.txt"
];
pruneOpts = [
"--keep-hourly 24"
"--keep-daily 7"
"--keep-weekly 5"
"--keep-monthly 12"
];
};
}