vno1-oh2: backup /var/lib/{grafana,soju}

This commit is contained in:
Motiejus Jakštys 2023-08-22 15:18:24 +03:00
parent 5ea92ad8ab
commit ef14233811
1 changed files with 9 additions and 1 deletions

View File

@ -42,7 +42,7 @@
snapshot = { snapshot = {
enable = true; enable = true;
mountpoints = ["/home"]; mountpoints = ["/home" "/var/lib"];
}; };
zfsborg = { zfsborg = {
@ -50,6 +50,14 @@
passwordPath = config.age.secrets.borgbackup-password.path; passwordPath = config.age.secrets.borgbackup-password.path;
sshKeyPath = "/etc/ssh/ssh_host_ed25519_key"; sshKeyPath = "/etc/ssh/ssh_host_ed25519_key";
mountpoints = { mountpoints = {
"/var/lib" = {
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-var_lib";
paths = [
"/var/lib/.snapshot-latest/private/soju"
"/var/lib/.snapshot-latest/grafana"
];
backup_at = "*-*-* 00:01:00";
};
"/home" = { "/home" = {
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2"; repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
paths = [ paths = [