getconf testconnect yes
getconf nicelevel 0
getconf bwlimit
+getconf ignore_version no
setsection source
getconf type; sourcetype=$type
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.
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`