Help On RSYNC SCRIPTING

My Script as below

#######
#!/usr/bin/ksh
DIR=$1
MN=`echo $1 | awk -F'/' '{print $NF}'`
LF=./rsynclog
RSYNC=/usr/local/bin/rsync

mv $LF.$MN $LF.$MN.prev
compress $LF.$MN.prev

$RSYNC -arz --rsync-path=$RSYNC --log-file=$LF.$MN SERVER1:$DIR/ $DIR

While running it I am getting error::

2015/02/19 12:30:01 [13009] rsync: connection unexpectedly closed (0 bytes received so far) [receiver] 2015/02/19 12:30:01 [13009] rsync error: error in rsync protocol data stream (code 12) at io.c(453) [receiver=2.6.9]

Both Source and Destination server has the same protocal version.

rsync version 2.6.9 protocol version 29

Any help, would really appreciate.