Replace znapzend with ZFS auto snapshot

This commit is contained in:
coolneng 2020-12-12 14:44:01 +01:00
parent 42b782b9f8
commit 994dbc5b3b
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 7 additions and 15 deletions

View File

@ -1,22 +1,14 @@
{ config, lib, pkgs, ... }:
{
# ZFS automatic backup solution
services.znapzend = {
# ZFS automatic snapshots
services.zfs.autoSnapshot = {
enable = true;
autoCreation = true;
features = {
compressed = true;
recvu = true;
};
pure = true;
zetup = {
"syscea/stateful/root".plan =
"1day=>1hour,2week=>1day,1month=>1week,1year=>1month";
"syscea/stateful/home".plan =
"1day=>1hour,2week=>1day,1month=>1week,1year=>1month";
};
frequent = 0;
hourly = 24;
daily = 7;
weekly = 4;
monthly = 12;
};
# Syncthing configuration