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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user