Enable ZFS automatic snapshotting

This commit is contained in:
coolneng 2020-06-20 02:00:59 +02:00
parent 59bb473451
commit 1bef32dcf2
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 29 additions and 0 deletions

View File

@ -77,4 +77,33 @@
'';
};
# ZFS automatic snapshotting
services.znapzend = {
enable = true;
autoCreation = true;
features = {
compressed = true;
recvu = true;
};
zetup = {
"vault/backups" = {
plan = "1day=>1hour,1month=>1day,1year=>1month";
recursive = true;
mbuffer.enable = true;
};
"vault/syncthing" = {
plan = "1hour=>15min,1day=>15min,1month=>1day,1year=>1month";
recursive = true;
mbuffer.enable = true;
};
"vault/git" = {
plan = "1hour=>15min,1day=>1hour,1month=>1day,1year=>1month";
recursive = true;
mbuffer.enable = true;
};
};
};
}