From d6a86058afacf8991788ab9f8724c89627109022 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Thu, 16 Jan 2025 19:45:55 +0100 Subject: [PATCH] Actually cleanup local snapshots --- machines/morpheus/btrbk.nix | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/machines/morpheus/btrbk.nix b/machines/morpheus/btrbk.nix index 3114204..871aac5 100644 --- a/machines/morpheus/btrbk.nix +++ b/machines/morpheus/btrbk.nix @@ -1,28 +1,6 @@ { ... }: { services.btrbk = { instances = { - /* - home = { - settings = { - snapshot_preserve = "24h 14d 4w 12m"; - snapshot_preserve_min = "latest"; - - # don't auto cleanup target - target_preserve_min = "all"; - - volume."/" = { - snapshot_dir = ".btrbk"; - subvolume = { - home = { - snapshot_create = "always"; - }; - }; - target = "/run/media/me/backup/morpheus"; - }; - }; - }; - */ - # local snapshots: # - create hourly # - keep hourly for 4 days and daily forever @@ -49,7 +27,8 @@ # disable systemd timer onCalendar = null; settings = { - snapshot_preserve = "*h 14d"; + # 14 * 24 = 336 + snapshot_preserve = "336h 14d"; snapshot_preserve_min = "latest"; target_preserve = "14d 8w *m";