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:
parent
90fcd56519
commit
5f628237cf
1 changed files with 12 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue