migrate backups to borgbase
This commit is contained in:
parent
253cdf8ede
commit
2e7fefa7b9
4 changed files with 37 additions and 37 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
BIN
nixos/viridian/services/borgbackup/passphrase.age
Normal file
BIN
nixos/viridian/services/borgbackup/passphrase.age
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue