2023-10-31 19:40:51 +00:00
|
|
|
{
|
2024-03-09 22:18:26 +00:00
|
|
|
self,
|
2023-10-31 19:40:51 +00:00
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-03-10 17:26:18 +00:00
|
|
|
inherit (config.services.secrets) secrets;
|
2024-03-09 22:18:26 +00:00
|
|
|
backupSchedules = import "${self}/data/backupSchedules.nix";
|
2023-10-31 19:40:51 +00:00
|
|
|
in {
|
|
|
|
services.restic.backups.jellyfin = {
|
|
|
|
user = "root";
|
|
|
|
paths = [
|
|
|
|
"/var/lib/jellyfin"
|
|
|
|
];
|
|
|
|
|
2024-07-06 17:20:28 +01:00
|
|
|
repository = "s3:s3.eu-central-003.backblazeb2.com/Chaos-Backups/Restic/Jellyfin";
|
2023-10-31 19:40:51 +00:00
|
|
|
passwordFile = "${secrets.restic_password.path}";
|
|
|
|
environmentFile = "${secrets.restic_env.path}";
|
2024-07-06 17:20:28 +01:00
|
|
|
createWrapper = true;
|
2023-10-31 19:40:51 +00:00
|
|
|
|
2024-03-09 22:18:26 +00:00
|
|
|
pruneOpts = ["--keep-last 10"];
|
|
|
|
timerConfig = backupSchedules.restic.low;
|
2023-10-31 19:40:51 +00:00
|
|
|
};
|
|
|
|
}
|