Fail if only one of SSH host and SSH user is set

Remote backup needs both, but if only one was set the program silently
ran a local backup instead, and a missing ssh_user in the config also
dropped ssh_host. Exit with an error (code 6) instead.
This commit is contained in:
Fuxino
2026-10-08 20:31:39 +02:00
parent 9a68a8660d
commit 1dca989310
2 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -207,7 +207,7 @@ rsync error (rsync returned a value other than 0 or 24).
SSH connection failed.
.TP
.B 6
Bad configuration file.
Bad configuration file or options (for example, only one of SSH host and SSH user specified).
.SH SEE ALSO
.BR rsync (1)
.SH AUTHORS