From 68b8da0c8fe47fd29d963e62260f24d84b53bf49 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 24 Feb 2025 10:46:43 +0100 Subject: [PATCH] WIP: xps16/btrfs: enable btrbk --- hosts/xps16/services/btrfs.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/hosts/xps16/services/btrfs.nix b/hosts/xps16/services/btrfs.nix index 1b87165..9563c75 100644 --- a/hosts/xps16/services/btrfs.nix +++ b/hosts/xps16/services/btrfs.nix @@ -1,4 +1,37 @@ { ... }: { services.btrfs.autoScrub.enable = true; + + services.btrbk = { + # instances = let + # withDefaults = path: conf: lib.recursiveUpdate { + # onCalendar = "daily"; + # settings = { + # timestamp_format = "long"; + # snapshot_preserve_min = "2d"; + # snapshot_preserve = "14d"; + # volume.${path} = { + # snapshot_create = "always"; + # subvolume = "."; + # snapshot_dir = ".snapshots"; + # }; + # }; + # } conf; +# ."var-log" + # in { + # "var-log" = + # settings = { + # volume."/home" = { + # snapshot_create = "always"; + # subvolume = "."; + # snapshot_dir = ".snapshots"; + # }; + # # volume."/var/local" = { + # # snapshot_create = "always"; + # # subvolume = "."; + # # snapshot_dir = ".snapshots"; + # # }; + # }; + # }; + }; }