2024-10-15 06:46:10 +08:00
|
|
|
{config, ...}: {
|
|
|
|
age.secrets.borgbackup = {
|
|
|
|
rekeyFile = ./passphrase.age;
|
|
|
|
};
|
2024-06-03 21:20:24 +08:00
|
|
|
|
2024-10-15 06:46:10 +08:00
|
|
|
services.borgbackup.jobs."borgbase" = {
|
|
|
|
paths = [
|
|
|
|
# Shares
|
|
|
|
"/srv/shares/sajenim"
|
|
|
|
# Services
|
|
|
|
"/srv/services/forgejo"
|
|
|
|
"/srv/services/immich"
|
|
|
|
"/srv/services/minecraft"
|
|
|
|
"/srv/services/paperless-ngx"
|
|
|
|
# Containers
|
|
|
|
"/srv/containers/jellyfin"
|
|
|
|
"/srv/containers/lidarr"
|
|
|
|
"/srv/containers/prowlarr"
|
|
|
|
"/srv/containers/qbittorrent"
|
|
|
|
"/srv/containers/radarr"
|
|
|
|
"/srv/containers/sonarr"
|
|
|
|
];
|
2024-10-01 17:35:42 +08:00
|
|
|
|
2024-10-15 06:46:10 +08:00
|
|
|
repo = "o93k24r6@o93k24r6.repo.borgbase.com:repo";
|
|
|
|
encryption = {
|
|
|
|
mode = "repokey-blake2";
|
|
|
|
passCommand = "cat ${config.age.secrets.traefik.path}";
|
2024-10-01 17:35:42 +08:00
|
|
|
};
|
2024-10-15 06:46:10 +08:00
|
|
|
environment.BORG_RSH = "ssh -i /etc/ssh/ssh_host_ed25519_key";
|
|
|
|
compression = "auto,lzma";
|
|
|
|
startAt = "daily";
|
2024-01-01 07:23:46 +08:00
|
|
|
};
|
|
|
|
}
|