Replace znapzend with ZFS auto snapshot
This commit is contained in:
parent
6669a824a7
commit
934416d576
|
@ -80,33 +80,14 @@
|
|||
'';
|
||||
};
|
||||
|
||||
# ZFS automatic snapshotting
|
||||
services.znapzend = {
|
||||
# ZFS automatic snapshots
|
||||
services.zfs.autoSnapshot = {
|
||||
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;
|
||||
};
|
||||
};
|
||||
frequent = 4;
|
||||
hourly = 24;
|
||||
daily = 7;
|
||||
weekly = 4;
|
||||
monthly = 12;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue