migrate backups to borgbase

This commit is contained in:
♥ Minnie ♥ 2024-10-15 06:46:10 +08:00
parent 253cdf8ede
commit 2e7fefa7b9
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
4 changed files with 37 additions and 37 deletions

View file

@ -1,33 +1,33 @@
{...}: {
services.borgbackup.jobs = {
containers = {
paths = [
"/srv/containers"
];
encryption.mode = "none";
repo = "/srv/backup/containers";
compression = "auto,zstd";
startAt = "daily";
};
{config, ...}: {
age.secrets.borgbackup = {
rekeyFile = ./passphrase.age;
};
services = {
paths = [
"/srv/services"
];
encryption.mode = "none";
repo = "/srv/backup/services";
compression = "auto,zstd";
startAt = "daily";
};
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"
];
shares = {
paths = [
"/srv/shares"
];
encryption.mode = "none";
repo = "/srv/backup/shares";
compression = "auto,zstd";
startAt = "daily";
repo = "o93k24r6@o93k24r6.repo.borgbase.com:repo";
encryption = {
mode = "repokey-blake2";
passCommand = "cat ${config.age.secrets.traefik.path}";
};
environment.BORG_RSH = "ssh -i /etc/ssh/ssh_host_ed25519_key";
compression = "auto,lzma";
startAt = "daily";
};
}

Binary file not shown.