configure zfs auto-snapshot

This commit is contained in:
Ingolf Wagner 2023-05-02 19:15:30 +02:00
parent b324102122
commit 86b40990b6
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
2 changed files with 6 additions and 1 deletions

View file

@ -42,7 +42,7 @@
boot.supportedFilesystems = [ "zfs" ];
# head -c4 /dev/urandom | od -A none -t x4
networking.hostId = "e439b116";
#boot.zfs.extraPools = [ "zraid" ];
services.zfs.autoSnapshot.enable = true;
sops.defaultSopsFile = ../../secrets/chungus.yaml;

View file

@ -118,6 +118,8 @@ in
options = {
mountpoint = "legacy";
compression = "lz4";
"com.sun:auto-snapshot" = "false";
"com.sun:auto-snapshot:daily" = "true,keep=32";
};
};
"nextcloud" = {
@ -147,6 +149,9 @@ in
options = {
mountpoint = "legacy";
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" = {