X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fbackupninja.git;a=blobdiff_plain;f=handlers%2Frdiff.in;h=0f934299edd0ebc86fea6dfa286079bad4906f91;hp=62c5a2803a10eab6a0b2fe96e6220aa6c8188257;hb=0a6abfc3cef116a69c7a4c8a820a08406432b46f;hpb=268494b0c8ddf8df68db8acb77e01be82a0591ba diff --git a/handlers/rdiff.in b/handlers/rdiff.in index 62c5a28..0f93429 100644 --- a/handlers/rdiff.in +++ b/handlers/rdiff.in @@ -77,6 +77,7 @@ getconf options getconf testconnect yes getconf nicelevel 0 getconf bwlimit +getconf ignore_version no setsection source getconf type; sourcetype=$type @@ -100,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. @@ -127,7 +132,7 @@ if [ "$testconnect" = "yes" ] || [ "${test}" -eq 1 ]; then test_connection $destuser $desthost fi -if [ $ignore_version != "yes" ]; then +if [ "$ignore_version" != "yes" ]; then # see that rdiff-backup has the same version at the source and destination sourceversion=`get_version $sourceuser $sourcehost` destversion=`get_version $destuser $desthost`