pull-style syncoid

This commit is contained in:
Hunter Haugen 2025-12-29 16:45:21 -08:00
parent bcf8ecf759
commit 80142a5052
Signed by: hunner
GPG key ID: EF99694AA599DDAD
2 changed files with 55 additions and 55 deletions

View file

@ -176,26 +176,26 @@
];
};
#services.syncoid = {
# enable = true;
# user = "backup";
# sshKey = "/var/lib/syncoid/.ssh/id_ed25519";
# commonArgs = [
# #"--sshoption=StrictHostKeyChecking=off"
# "--sshoption=UserKnownHostsFile=/var/lib/syncoid/.ssh/known_hosts"
# "--sshoption=IdentitiesOnly=yes"
# ];
# #commands."zima-bitrot" = {
# # source = "backup@zima:bitrot";
# # target = "tank/backups/zima/bitrot";
# # recursive = true;
# #};
# commands."zima-rpool-safe" = {
# source = "backup@zima:rpool/safe";
# target = "tank/backups/zima/rpool-safe";
# recursive = true;
# };
#};
services.syncoid = {
enable = true;
user = "backup";
sshKey = "/var/lib/syncoid/.ssh/id_ed25519";
commonArgs = [
#"--sshoption=StrictHostKeyChecking=off"
"--sshoption=UserKnownHostsFile=/var/lib/syncoid/.ssh/known_hosts"
"--sshoption=IdentitiesOnly=yes"
];
commands."zima-bitrot" = {
source = "backup@zima:bitrot";
target = "tank/backups/zima/bitrot";
recursive = true;
};
commands."zima-rpool-safe" = {
source = "backup@zima:rpool/safe";
target = "tank/backups/zima/rpool-safe";
recursive = true;
};
};
#systemd.services.syncoid-zima-rpool-safe.serviceConfig = {
# Environment = [
# "HOME=/var/lib/syncoid"