less snaps for nvr
monthly snap was taking up 1.5tb of nvme
This commit is contained in:
parent
240f1ede65
commit
86674c4821
2 changed files with 8 additions and 3 deletions
|
@ -10,11 +10,16 @@
|
||||||
daily = 7;
|
daily = 7;
|
||||||
monthly = 12;
|
monthly = 12;
|
||||||
};
|
};
|
||||||
|
"nvr" = {
|
||||||
|
autoprune = true;
|
||||||
|
autosnap = true;
|
||||||
|
hourly = 24;
|
||||||
|
daily = 7;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
datasets = {
|
datasets = {
|
||||||
"nahar/scrypted" = {
|
"nahar/scrypted" = {
|
||||||
useTemplate = [ "production" ];
|
useTemplate = [ "nvr" ];
|
||||||
recursive = true;
|
|
||||||
};
|
};
|
||||||
"nahar/containers/volumes/plex" = {
|
"nahar/containers/volumes/plex" = {
|
||||||
useTemplate = [ "production" ];
|
useTemplate = [ "production" ];
|
||||||
|
|
|
@ -219,7 +219,7 @@ in
|
||||||
description = "Create and mount nightly ZFS snapshot";
|
description = "Create and mount nightly ZFS snapshot";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${lib.getExe resticSnapAndMount}";
|
ExecStart = "${resticSnapAndMount}/bin/zfs-nightly-snap";
|
||||||
};
|
};
|
||||||
requires = [ "zfs.target" ];
|
requires = [ "zfs.target" ];
|
||||||
after = [ "zfs.target" ];
|
after = [ "zfs.target" ];
|
||||||
|
|
Loading…
Reference in a new issue