projects
/
matthijs
/
upstream
/
backupninja-vserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ldap: Use quotes in more places.
[matthijs/upstream/backupninja-vserver.git]
/
handlers
/
rdiff.in
diff --git
a/handlers/rdiff.in
b/handlers/rdiff.in
index bb704c5fddd11f169d6825bedca8e3a86bf87f11..0f934299edd0ebc86fea6dfa286079bad4906f91 100644
(file)
--- a/
handlers/rdiff.in
+++ b/
handlers/rdiff.in
@@
-101,6
+101,10
@@
getconf host; desthost=$host
getconf sshoptions
check_consistency "destination" "$type" "$user" "$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.
### CHECK CONFIG ###
# If vservers are configured, check that the ones listed in $vsnames do exist.