From cfda3ee22833fffd16791e2ce923f146a10f1d5a Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 14 Jan 2023 21:06:21 +0100 Subject: [PATCH] hosts: btrbk add all nas folders --- hosts/nas/hardware-configuration.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/hosts/nas/hardware-configuration.nix b/hosts/nas/hardware-configuration.nix index d126be3..a9f82ce 100644 --- a/hosts/nas/hardware-configuration.nix +++ b/hosts/nas/hardware-configuration.nix @@ -64,6 +64,32 @@ "/mnt/snapshots/root" = { snapshot_create = "always"; subvolume = "@home"; + subvolume = "@nas"; + }; + }; + }; + }; + lf = { + onCalendar = "daily"; + settings = { + incremental = "yes"; + snapshot_create = "ondemand"; + snapshot_dir = "@snapshots"; + timestamp_format = "long"; + + snapshot_preserve = "2m 2w 5d"; + snapshot_preserve_min = "latest"; + + volume = { + "/mnt/snapshots/Pluto" = { + snapshot_create = "always"; + subvolume = "@"; + subvolume = "@/Backups"; + subvolume = "@/Games"; + subvolume = "@/IT"; + subvolume = "@/Media"; + subvolume = "@/Pictures"; + subvolume = "@/Rest"; }; }; };