Added syncoid service
Sets up ZFS replication. Syncoid modules handles configuration for both the remote and the target but I'm thinking I should split this up in the future.
This commit is contained in:
parent
30a6e58691
commit
ff6fa1c1f3
4 changed files with 108 additions and 1 deletions
|
@ -16,7 +16,12 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
services.zfs = {
|
||||
autoScrub.enable = true;
|
||||
autoSnapshot.enable = true;
|
||||
# Still need to set `com.sun:auto-snapshot` to `true` on datasets
|
||||
# zfs set com.sun:auto-snapshot=true pool/dataset
|
||||
autoSnapshot = {
|
||||
enable = true;
|
||||
flags = "-k -p --utc";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue