aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rdiff.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/handlers/rdiff.in b/handlers/rdiff.in
index bb704c5..0f93429 100644
--- a/handlers/rdiff.in
+++ b/handlers/rdiff.in
@@ -101,6 +101,10 @@ getconf host; desthost=$host
getconf sshoptions
check_consistency "destination" "$type" "$user" "$host"
+if [ -n "$sshoptions" ] && echo $options | grep -qv "remote-schema"; then
+ options="$options --remote-schema 'ssh -C $sshoptions %s rdiff-backup --server'"
+fi
+
### CHECK CONFIG ###
# If vservers are configured, check that the ones listed in $vsnames do exist.