setup borgbackup
This commit is contained in:
parent
346446687e
commit
22f00e906d
|
@ -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
|
||||||
|
|
40
nixos/viridian/services/borgbackup/default.nix
Normal file
40
nixos/viridian/services/borgbackup/default.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue