prune_cfg
This commit is contained in:
parent
4de4db324e
commit
61784db467
|
@ -33,14 +33,20 @@ in
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
restic.backups = {
|
restic.backups = {
|
||||||
"diskstation423" = {
|
"nextcloud" = {
|
||||||
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
passwordFile = "/etc/nixos/.secrets/restic_pw";
|
||||||
repository = "sftp:Glenn@nas:/home/back/nextcloud/restic-repo";
|
repository = "sftp:Glenn@nas:/home/back/nextcloud/restic-repo";
|
||||||
paths = [
|
paths = [
|
||||||
"/pool/var/lib/nextcloud"
|
"/pool/var/lib/nextcloud"
|
||||||
];
|
];
|
||||||
user = "sondell";
|
user = "sondell";
|
||||||
timerConfig.onCalendar = "02:05";
|
timerConfig.OnCalendar = "02:05";
|
||||||
|
pruneOpts = [
|
||||||
|
"--keep-daily 10"
|
||||||
|
"--keep-weekly 5"
|
||||||
|
"--keep-monthly 12"
|
||||||
|
"--keep-yearly 75"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue