caddy: snapshot and backup access logs

This commit is contained in:
Motiejus Jakštys 2023-08-25 19:41:26 +03:00
parent 95dfd6d143
commit b886b752e0
2 changed files with 10 additions and 10 deletions

View File

@ -46,15 +46,6 @@
]; ];
backup_at = "*-*-* 00:05:00"; backup_at = "*-*-* 00:05:00";
}; };
"/var/log" = {
repo = "zh2769@zh2769.rsync.net:hel1-a.servers.jakst-var_log";
paths = ["/var/log/.snapshot-latest/caddy/"];
patterns = [
"+ /var/log/.snapshot-latest/caddy/access-jakstys.lt.log-*.zst"
"- *"
];
backup_at = "*-*-* 00:01:00";
};
}; };
}; };

View File

@ -42,7 +42,7 @@
snapshot = { snapshot = {
enable = true; enable = true;
mountpoints = ["/home" "/var/lib"]; mountpoints = ["/home" "/var/lib" "/var/log"];
}; };
zfsborg = { zfsborg = {
@ -60,6 +60,15 @@
]; ];
backup_at = "*-*-* 00:01:00"; backup_at = "*-*-* 00:01:00";
}; };
"/var/log" = {
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-var_log";
paths = ["/var/log/.snapshot-latest/caddy/"];
patterns = [
"+ /var/log/.snapshot-latest/caddy/access-jakstys.lt.log-*.zst"
"- *"
];
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 = [