+ if (ssh $REMOTE_HOST '[ ! -d '$REMOTE_BASE/$2' ]'); then
+ scottyinfo Creating destination directory $REMOTE_HOST:$REMOTE_BASE/$2
+ ssh $REMOTE_HOST "mkdir $REMOTE_BASE/$2"
+ fi
+
+ if (ssh $REMOTE_HOST '[ -d '$REMOTE_BASE/$2/incomplete' ]'); then
+ scottyerror Continuing old incomplete backup
+ fi
+
+ scottyinfo Starting rsync