setup borgbackup

This commit is contained in:
♥ Minnie ♥ 2024-01-01 07:23:46 +08:00
parent 346446687e
commit 22f00e906d
2 changed files with 41 additions and 0 deletions

View file

@ -31,6 +31,7 @@
# Import services # Import services
./services/adguardhome ./services/adguardhome
./services/borgbackup
./services/home-assistant ./services/home-assistant
./services/minecraft-server ./services/minecraft-server
./services/traefik ./services/traefik

View file

@ -0,0 +1,40 @@
{ ... }:
{
services.borgbackup.jobs = {
multimedia = {
paths = [
"/var/lib/jellyfin"
"/var/lib/jellyseerr"
"/var/lib/sonarr"
"/var/lib/radarr"
"/var/lib/lidarr"
];
encryption.mode = "none";
repo = "/mnt/backup/multimedia/borg";
compression = "auto,zstd";
startAt = "daily";
};
torrents = {
paths = [
"/var/lib/qbittorrent"
];
encryption.mode = "none";
repo = "/mnt/backup/torrents/borg";
compression = "auto,zstd";
startAt = "daily";
};
minecraft = {
paths = [
"/var/lib/minecraft"
];
encryption.mode = "none";
repo = "/mnt/backup/minecraft/borg";
compression = "auto,zstd";
startAt = "daily";
};
};
}