From 7d025ffbb4a70c41033e6cf2678de1f234e845ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 29 Jul 2024 16:44:35 +0300 Subject: [PATCH] fwminex: snapshot /var/lib --- hosts/fwminex/configuration.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/hosts/fwminex/configuration.nix b/hosts/fwminex/configuration.nix index 8454b2a..32be118 100644 --- a/hosts/fwminex/configuration.nix +++ b/hosts/fwminex/configuration.nix @@ -94,6 +94,24 @@ in verboseLogs = false; }; + btrfssnapshot = { + enable = true; + subvolumes = [ + { + subvolume = "/var/lib"; + label = "hourly"; + keep = 24; + refreshInterval = "*:00:00"; + } + { + subvolume = "/var/lib"; + label = "nightly"; + keep = 7; + refreshInterval = "00:00:00Z"; + } + ]; + }; + remote-builder.client = let host = myData.hosts."fra1-a.servers.jakst";