From 0327d7072a5f3ae438b33e8f5f2abd90df32563c Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 13 Feb 2025 05:37:04 +0000 Subject: [PATCH] snapper: cull snapshots more aggressively --- hosts/common/snapper.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/common/snapper.nix b/hosts/common/snapper.nix index b3d8432b9..b893ae313 100644 --- a/hosts/common/snapper.nix +++ b/hosts/common/snapper.nix @@ -20,10 +20,18 @@ ALLOW_USERS = [ "colin" ]; TIMELINE_CLEANUP = true; # remove old snapshots every 24h TIMELINE_CREATE = true; # take a snapshot every hour - TIMELINE_LIMIT_HOURLY = 12; - TIMELINE_LIMIT_DAILY = 7; # keep snapshots for 1d ago, 2d ago, ... 7day ago - TIMELINE_LIMIT_WEEKLY = 4; # keep snapshots for 7d ago, 14d ago, 21d ago, 28d ago + + TIMELINE_LIMIT_HOURLY = 2; + TIMELINE_LIMIT_DAILY = 3; + TIMELINE_LIMIT_WEEKLY = 0; TIMELINE_LIMIT_MONTHLY = 0; TIMELINE_LIMIT_YEARLY = 0; + + # TODO: enable these better settings, but i need higher capacity drives first! + # TIMELINE_LIMIT_HOURLY = 12; + # TIMELINE_LIMIT_DAILY = 7; # keep snapshots for 1d ago, 2d ago, ... 7day ago + # TIMELINE_LIMIT_WEEKLY = 4; # keep snapshots for 7d ago, 14d ago, 21d ago, 28d ago + # TIMELINE_LIMIT_MONTHLY = 0; + # TIMELINE_LIMIT_YEARLY = 0; }; }