From c686f7645f1ce43664ab95a1b9d333508749b107 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Thu, 23 Nov 2023 00:15:32 +0100 Subject: [PATCH] refactor(conf): Keep 10 important snaps, up from 5 (#1) On an average daiy driver machine having 10 snaps would've allowed to roll back far enough into the past to work around: https://github.com/openzfs/zfs/issues/15526 --- README.md | 2 +- pacman-zfs-snapshot.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 231ced9..a3c7ee0 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ We retain two different snapshot chains, one for `pacman` transactions that only Whenever an important package is affected by a transaction a snapshot goes into the corresponding chain. In all other cases - when an important package is not affected - snapshots go into the trivial chain. -The _trivial_ snapshot chain by default keeps 25 snapshots, the _important_ chain keeps 5. The thought process here is that you will likely not futz around with a kernel every day whereas you may very well install arbitrary packages multiple times a day. Snapshots should keep you safe for a couple of days hence the defaults of 5 and 25 snapshots, respectively. +The _trivial_ snapshot chain by default keeps 25 snapshots, the _important_ chain keeps 10. The thought process here is that you will likely not futz around with a kernel every day whereas you may very well install arbitrary packages multiple times a day. Snapshots should keep you safe for a couple of days hence the defaults of 10 and 25 snapshots, respectively. Snapshots may look like so: ``` diff --git a/pacman-zfs-snapshot.conf b/pacman-zfs-snapshot.conf index c2040d9..c145ee8 100644 --- a/pacman-zfs-snapshot.conf +++ b/pacman-zfs-snapshot.conf @@ -13,7 +13,7 @@ important_names='linux|systemd|zfs-(dkms|utils)' # Number snapshots to keep snaps_trivial_keep='25' -snaps_important_keep='5' +snaps_important_keep='10' # Which suffix to use in snapshot names to identify snapshots before a # trivial pacman operation and before important pacman operations.