aboutsummaryrefslogtreecommitdiff
path: root/handlers/rdiff.in
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2007-12-12 02:54:09 +0000
committerMicah Anderson <micah@riseup.net>2007-12-12 02:54:09 +0000
commit18f6031a726c4e2e96049c8ca4f1fc3b5dcc7c00 (patch)
tree2eb8b8bbb3272ab4fb954547c34d248db1b1ffce /handlers/rdiff.in
parentc0140aea9722188f761e6d2d8820f2f72bf4fc58 (diff)
downloadbackupninja-18f6031a726c4e2e96049c8ca4f1fc3b5dcc7c00.tar.gz
backupninja-18f6031a726c4e2e96049c8ca4f1fc3b5dcc7c00.tar.bz2
rdiff: incorporate sshoptions into options via remote-schema if not there
Diffstat (limited to 'handlers/rdiff.in')
-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.