From ab748266eafc6a0bba1c44132420568d0ef30431 Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 14 Jan 2023 20:53:40 +0100 Subject: [PATCH] hosts: move from snapper to btrbk fix --- hosts/nas/hardware-configuration.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/nas/hardware-configuration.nix b/hosts/nas/hardware-configuration.nix index 0147634..575b5af 100644 --- a/hosts/nas/hardware-configuration.nix +++ b/hosts/nas/hardware-configuration.nix @@ -44,17 +44,18 @@ fileSystems = [ "/" "/mnt/Pluto" -# "/mnt/Mars" ]; }; services.btrbk = { instances = { hf = { + onCalendar = "hourly"; settings = { incremental = "yes"; snapshot_create = "ondemand"; snapshot_dir = "@snapshots"; + timestamp_format = "long"; snapshot_preserve = "2m 2w 5d 5h"; snapshot_preserve_min = "latest"; @@ -105,13 +106,13 @@ fileSystems."/mnt/snapshots/Mars" = { device = "/dev/disk/by-label/NIXROOT"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvol=@snapshots/mars/home,discard=async" ]; + options = [ "compress=zstd,space_cache=v2,ssd,noatime,subvolid=5,discard=async" ]; }; fileSystems."/mnt/snapshots/Pluto" = { device = "/dev/disk/by-label/NAS-RAID"; fsType = "btrfs"; - options = [ "compress=zstd,space_cache=v2,noatime,subvol=@snapshots" ]; + options = [ "compress=zstd,space_cache=v2,noatime,subvolid=5" ]; }; fileSystems."/mnt/Pluto" =