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
|
@ -41,6 +41,21 @@
|
|||
configureClientRouting = true;
|
||||
configureServerRouting = true;
|
||||
};
|
||||
services.syncoid = {
|
||||
enable = true;
|
||||
commands = {
|
||||
"bpool" = {
|
||||
target = "backups@192.168.113.13:tank/backups/gospel/bpool";
|
||||
recursive = true;
|
||||
sshKey = "/var/lib/syncoid/.ssh/id_ed25519";
|
||||
};
|
||||
"rpool" = {
|
||||
target = "backups@192.168.113.13:tank/backups/gospel/rpool";
|
||||
recursive = true;
|
||||
sshKey = "/var/lib/syncoid/.ssh/id_ed25519";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
hardware.audio.enable = true;
|
||||
hardware.bluetooth.enable = true;
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
enable = true;
|
||||
acmeCertName = "kilonull.com";
|
||||
};
|
||||
services.syncoid = {
|
||||
# sudo -u backups zfs create -o mountpoint=/tank/backups/gospel tank/backups/gospel
|
||||
enable = true;
|
||||
remoteTargetUser = "backups";
|
||||
remoteTargetDatasets = ["tank/backups"];
|
||||
remoteTargetPublicKeys = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAhA+9O2OBMDH1Xnj6isu36df5TOdZG8aEA4JpN2K60e syncoid@gospel"];
|
||||
};
|
||||
|
||||
security.acme = {
|
||||
enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue