nix-git/hosts/yodaHedgehog/btrbk-config.nix

49 lines
1.3 KiB
Nix
Raw Normal View History

2023-11-18 12:02:52 +01:00
{ config, pkgs, ... }:
let
# TODO: Remove duplicate variables below (reuse from yodaNas config).
ssd-subvolumes = {
"arch.p1st.de" = {};
"blogger.privacy1st.de" = {};
"changedetection.p1st.de" = {};
"cloud.privacy1st.de" = {};
"git.privacy1st.de" = {};
"mastodon-toot-follower.privacy1st.de" = {};
"money.p1st.de" = {};
"music.privacy1st.de" = {};
"paste.p1st.de" = {};
"proxy" = {};
"recipe.privacy1st.de" = {};
"traggo.privacy1st.de" = {};
};
hdd-subvolumes = {
"cloud.privacy1st.de" = {};
# MediaKollektiv: 796 GiB
"cloud.media-kollektiv.eu" = {};
};
in
{
# TODO: Enable lz4 when yodaHedgehog no longer has direct LAN connection.
yoda.btrbkBackups = [
{
instance = "remote-backup-ssd";
2023-11-18 12:16:47 +01:00
enable = false;
2023-11-18 12:02:52 +01:00
lz4 = false;
ssh_identity = "/mnt/backup/rootNas_ed25519";
volume = "ssh://rootnas/jc-data";
snapshot_dir = "/snap";
target = "/mnt/backup/snap";
subvolume = ssd-subvolumes;
}
{
instance = "remote-backup-hdd";
2023-11-18 12:16:47 +01:00
enable = false;
2023-11-18 12:02:52 +01:00
lz4 = false;
ssh_identity = "/mnt/backup/rootNas_ed25519";
volume = "ssh://rootnas/mnt/data/jc-data";
snapshot_dir = "/mnt/data/snap2";
target = "/mnt/backup/snap2";
subvolume = hdd-subvolumes;
}
];
}