caddy: snapshot and backup access logs
This commit is contained in:
parent
95dfd6d143
commit
b886b752e0
@ -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";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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 = [
|
||||||
|
Loading…
Reference in New Issue
Block a user