borgstor: add remaining paths

This commit is contained in:
Motiejus Jakštys 2023-09-11 17:50:35 +03:00
parent 27d663e63a
commit 05b7858035

View File

@ -50,6 +50,7 @@
passwordPath = config.age.secrets.borgbackup-password.path;
sshKeyPath = "/etc/ssh/ssh_host_ed25519_key";
dirs = [
# TODO merge
{
mountpoint = "/var/lib";
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-var_lib";
@ -66,8 +67,24 @@
];
backup_at = "*-*-* 00:01:00";
}
{
mountpoint = "/var/lib";
repo = "borgstor@${myData.hosts."vno1-rp3b.servers.jakst".jakstIP}:${config.networking.hostName}.${config.networking.domain}-var_lib";
paths = [
"/var/lib/.snapshot-latest/bitwarden_rs"
"/var/lib/.snapshot-latest/caddy"
"/var/lib/.snapshot-latest/gitea"
"/var/lib/.snapshot-latest/grafana"
"/var/lib/.snapshot-latest/headscale"
"/var/lib/.snapshot-latest/matrix-synapse"
"/var/lib/.snapshot-latest/nsd-acme"
"/var/lib/.snapshot-latest/tailscale"
"/var/lib/.snapshot-latest/private/soju"
];
backup_at = "*-*-* 00:01:00";
}
# TODO: merge the two below
# TODO: merge
{
mountpoint = "/var/log";
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-var_log";
@ -76,7 +93,7 @@
"+ /var/log/.snapshot-latest/caddy/access-jakstys.lt.log-*.zst"
"- *"
];
backup_at = "*-*-* 00:01:00";
backup_at = "*-*-* 00:02:00";
}
{
mountpoint = "/var/log";
@ -88,8 +105,8 @@
];
backup_at = "*-*-* 00:02:00";
}
# /TODO
# TODO merge
{
mountpoint = "/home";
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
@ -99,6 +116,15 @@
];
backup_at = "*-*-* 00:05:00 UTC";
}
{
mountpoint = "/home";
repo = "borgstor@${myData.hosts."vno1-rp3b.servers.jakst".jakstIP}:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
paths = [
"/home/.snapshot-latest/motiejus/annex2"
"/home/.snapshot-latest/motiejus/.config/syncthing"
];
backup_at = "*-*-* 00:05:00 UTC";
}
];
};