caddy: snapshot and backup access logs
This commit is contained in:
parent
95dfd6d143
commit
b886b752e0
@ -46,15 +46,6 @@
|
||||
];
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
||||
|
||||
snapshot = {
|
||||
enable = true;
|
||||
mountpoints = ["/home" "/var/lib"];
|
||||
mountpoints = ["/home" "/var/lib" "/var/log"];
|
||||
};
|
||||
|
||||
zfsborg = {
|
||||
@ -60,6 +60,15 @@
|
||||
];
|
||||
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" = {
|
||||
repo = "zh2769@zh2769.rsync.net:${config.networking.hostName}.${config.networking.domain}-home-motiejus-annex2";
|
||||
paths = [
|
||||
|
Loading…
Reference in New Issue
Block a user