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

55 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2023-11-17 15:06:01 +01:00
{ config, pkgs, ... }:
let
ssd-subvolumes = {
"blogger.privacy1st.de" = {};
"changedetection.p1st.de" = {};
"cloud.privacy1st.de" = {};
2024-11-14 20:15:22 +01:00
"cloud.fykml.eu" = {};
2023-11-17 15:06:01 +01:00
"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 = {
2024-08-20 13:16:17 +02:00
"arch.p1st.de" = {};
2023-11-17 15:06:01 +01:00
"cloud.privacy1st.de" = {};
2024-11-14 20:15:22 +01:00
"cloud.fykml.eu" = {};
2023-11-17 15:06:01 +01:00
};
in
{
yoda.btrbkSnapshots = [
{
instance = "local-snapshot-ssd";
volume = "/jc-data";
snapshot_dir = "/snap";
subvolume = ssd-subvolumes;
}
{
instance = "local-snapshot-hdd";
volume = "/mnt/data/jc-data";
snapshot_dir = "/mnt/data/snap2";
subvolume = hdd-subvolumes;
}
];
yoda.btrbkBackups = [
{
instance = "local-backup-ssd";
volume = "/jc-data";
snapshot_dir = "/snap";
target = "/mnt/backup/snap";
subvolume = ssd-subvolumes;
}
{
instance = "local-backup-hdd";
volume = "/mnt/data/jc-data";
snapshot_dir = "/mnt/data/snap2";
target = "/mnt/backup/snap2";
subvolume = hdd-subvolumes;
}
];
}