+else
+ log "host $host (via $remote) is online ..."
+fi
+
+if [ ! -z "`ssh $user@$remote 'cat ~/.backup | grep ^off'`" ]; then
+ log "backup rejected by client ..."
+ exit 0
+fi
+
+comp=6
+if [ ! -z "$compression" ]; then
+ comp=$compression
+ for cpair in "$compconn"; do
+ ch=`echo $cpair | cut -d ':' -f 1`
+ if [[ "$remote" == "$ch"* ]]; then
+ cl=`echo $cpair | cut -d ':' -f 2`
+ [[ "$cl" == [0-9] ]] && comp=$cl
+ fi
+ done
+fi
+rcomp="-z --compress-level $comp"
+log using compression level $comp ...
+
+bw=0
+if [ ! -z "$bandwidth" ]; then
+ bw=$bandwidth
+ for bwpair in "$bwconn"; do
+ ch=`echo $bwpair | cut -d ':' -f 1`
+ if [[ "$remote" == "$ch"* ]]; then
+ bwl=`echo $cpair | cut -d ':' -f 2`
+ [ ! -z "$bwl" ] && bw=$bwl
+ fi
+ done
+fi
+rbw="--bwlimit=$bw"
+log applying bandwidth of $bw ...
+
+ciph=""
+if [ ! -z "$cipher" ]; then
+ ciph=$cipher
+ for cipair in "$ciconn"; do
+ ch=`echo $cipair | cut -d ':' -f 1`
+ if [[ "$remote" == "$ch"* ]]; then
+ cl=`echo $cipair | cut -d ':' -f 2`
+ [ ! -z "$cl" ] && ciph=$cl
+ fi
+ done
+fi
+if [ ! -z "$ciph" ]; then
+ log using cipher $ciph ...