1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-3: more frequent ZFS snapshots, verbose logging

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2022-02-09 12:54:53 -05:00
parent 90fcd56519
commit 5f628237cf
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94

View file

@ -29,11 +29,20 @@ in {
# Roll up snapshots for long periods of time, we have storage to burn.
autoSnapshot = {
enable = true;
# Debug output, keep zero-sized snapshots, parallel snapshots, UTC
# timestamp, verbose logging.
flags = "-d -k -p -u -v";
# No 15 minute or hourly snapshots, things don't change that often.
frequent = 0;
hourly = 0;
# High frequency snapshots. For quickly rolling back unintended changes,
# so we don't keep very many.
#
# Every 15 minutes for 1 hour.
frequent = 4;
# Every hour for 4 hours.
hourly = 4;
# Beyond this point, retain more snapshots for long-term archival.
#
# Every day for 2 weeks.
daily = 14;
# Every week for 2 months.