backups hopper -> nixdesk with restic & restic-server
This commit is contained in:
parent
382df4af88
commit
3da5ded7dd
5 changed files with 63 additions and 0 deletions
|
@ -363,4 +363,31 @@ in {
|
|||
};
|
||||
};
|
||||
systemd.services.navidrome.serviceConfig.EnvironmentFile = config.sops.secrets.navidrome.path;
|
||||
|
||||
services.restic.backups.hopper = {
|
||||
initialize = true;
|
||||
inhibitsSleep = true;
|
||||
repository = "rest:http://nixdesk:8000/hopper";
|
||||
passwordFile = config.sops.secrets.restic-password.path;
|
||||
timerConfig = {
|
||||
OnCalendar = "18:00";
|
||||
Persistent = true;
|
||||
RandomizedDelaySec = "1h";
|
||||
};
|
||||
pruneOpts = [
|
||||
"--keep-daily 7"
|
||||
"--keep-weekly 5"
|
||||
"--keep-monthly 12"
|
||||
"--keep-yearly 2"
|
||||
];
|
||||
paths = [
|
||||
"/var/lib/navidrome"
|
||||
"/var/lib/jellyfin/data"
|
||||
"/var/lib/jellyfin/config"
|
||||
"/media/library/music"
|
||||
];
|
||||
exclude = [
|
||||
"/var/lib/navidrome/cache"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue