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, ... }: { config, lib, pkgs, ... }:
{ {
# ZFS automatic backup solution # ZFS automatic snapshots
services.znapzend = { services.zfs.autoSnapshot = {
enable = true; enable = true;
autoCreation = true; frequent = 0;
features = { hourly = 24;
compressed = true; daily = 7;
recvu = true; weekly = 4;
}; monthly = 12;
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";
};
}; };
# Syncthing configuration # Syncthing configuration