2024-05-28 17:56:03 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.restic.backups."borgbase" = {
|
|
|
|
paths = [
|
|
|
|
"/home"
|
|
|
|
"/root"
|
|
|
|
"/etc/secrets"
|
|
|
|
"/var"
|
|
|
|
"/srv"
|
|
|
|
];
|
|
|
|
|
|
|
|
exclude = [
|
|
|
|
"/var/cache"
|
|
|
|
"/home/*/.cache"
|
|
|
|
"/var/log"
|
|
|
|
".opam"
|
2024-05-28 21:24:31 +00:00
|
|
|
"/home/armael/TorrentsData"
|
2024-05-28 17:56:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
timerConfig = {
|
|
|
|
OnCalendar = "daily";
|
|
|
|
RandomizedDelaySec = "5h";
|
|
|
|
Persistent = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
pruneOpts = [
|
|
|
|
"--keep-daily 7"
|
|
|
|
"--keep-weekly 5"
|
|
|
|
"--keep-monthly 6"
|
|
|
|
"--keep-yearly 3"
|
|
|
|
];
|
|
|
|
|
|
|
|
repositoryFile = /etc/secrets/restic/repo;
|
|
|
|
passwordFile = "/etc/secrets/restic/password";
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|