less snaps for nvr

monthly snap was taking up 1.5tb of nvme
This commit is contained in:
Joseph Hanson 2025-01-04 15:38:18 -06:00
parent 240f1ede65
commit 86674c4821
2 changed files with 8 additions and 3 deletions

View file

@ -10,11 +10,16 @@
daily = 7;
monthly = 12;
};
"nvr" = {
autoprune = true;
autosnap = true;
hourly = 24;
daily = 7;
};
};
datasets = {
"nahar/scrypted" = {
useTemplate = [ "production" ];
recursive = true;
useTemplate = [ "nvr" ];
};
"nahar/containers/volumes/plex" = {
useTemplate = [ "production" ];

View file

@ -219,7 +219,7 @@ in
description = "Create and mount nightly ZFS snapshot";
serviceConfig = {
Type = "oneshot";
ExecStart = "${lib.getExe resticSnapAndMount}";
ExecStart = "${resticSnapAndMount}/bin/zfs-nightly-snap";
};
requires = [ "zfs.target" ];
after = [ "zfs.target" ];