refactor btrbk

This commit is contained in:
Daniel Langbein 2023-11-15 13:52:21 +01:00
parent b99723f3f4
commit c5b302d1c0
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002

View File

@ -1,4 +1,25 @@
{ config, pkgs, ... }:
let
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
{
# For each instance, a service and timer will be created:
# systemctl list-unit-files | grep btrbk
@ -32,28 +53,11 @@
volume."/jc-data" = {
snapshot_dir = "/snap";
subvolume = {
"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" = {};
};
subvolume = ssd-subvolumes;
};
volume."/mnt/data/jc-data" = {
snapshot_dir = "/mnt/data/snap";
subvolume = {
"cloud.privacy1st.de" = {};
# MediaKollektiv: 796 GiB
"cloud.media-kollektiv.eu" = {};
};
subvolume = hdd-subvolumes;
};
};
};
@ -77,29 +81,12 @@
volume."/jc-data" = {
snapshot_dir = "/snap";
target = "/mnt/backup/snap";
subvolume = {
"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" = {};
};
subvolume = ssd-subvolumes;
};
volume."/mnt/data/jc-data" = {
snapshot_dir = "/mnt/data/snap";
target = "/mnt/backup/snap2";
subvolume = {
"cloud.privacy1st.de" = {};
# MediaKollektiv: 796 GiB
"cloud.media-kollektiv.eu" = {};
};
subvolume = hdd-subvolumes;
};
};
};