thanks for the quick reply ..
I am currently using cygwin in windows to run the script,
when i run the script, it give me error that
rsync: command not found
is there need to install any else program to make it run ?
and when i change the rsync in script and run in ubuntu machine, it gives error and the error is given below :
ssh_exchange_identification: Connection closed by remote host
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(601) [sender=3.0.7]
ssh_exchange_identification: Connection closed by remote host
thanks in advance for the reply