configure zfs auto-snapshot
This commit is contained in:
parent
b324102122
commit
86b40990b6
2 changed files with 6 additions and 1 deletions
|
@ -42,7 +42,7 @@
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
# head -c4 /dev/urandom | od -A none -t x4
|
# head -c4 /dev/urandom | od -A none -t x4
|
||||||
networking.hostId = "e439b116";
|
networking.hostId = "e439b116";
|
||||||
#boot.zfs.extraPools = [ "zraid" ];
|
services.zfs.autoSnapshot.enable = true;
|
||||||
|
|
||||||
sops.defaultSopsFile = ../../secrets/chungus.yaml;
|
sops.defaultSopsFile = ../../secrets/chungus.yaml;
|
||||||
|
|
||||||
|
|
|
@ -118,6 +118,8 @@ in
|
||||||
options = {
|
options = {
|
||||||
mountpoint = "legacy";
|
mountpoint = "legacy";
|
||||||
compression = "lz4";
|
compression = "lz4";
|
||||||
|
"com.sun:auto-snapshot" = "false";
|
||||||
|
"com.sun:auto-snapshot:daily" = "true,keep=32";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"nextcloud" = {
|
"nextcloud" = {
|
||||||
|
@ -147,6 +149,9 @@ in
|
||||||
options = {
|
options = {
|
||||||
mountpoint = "legacy";
|
mountpoint = "legacy";
|
||||||
compression = "lz4";
|
compression = "lz4";
|
||||||
|
"com.sun:auto-snapshot" = "false";
|
||||||
|
"com.sun:auto-snapshot:daily" = "true,keep=32";
|
||||||
|
"com.sun:auto-snapshot:montly" = "true,keep=48";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
"services/gitea" = {
|
"services/gitea" = {
|
||||||
|
|
Loading…
Reference in a new issue