I wrote a shell script to sync
files from one server to other server everyday.
/usr/local/bin/rsync -azublpv --delete
\
--exclude "log/*" \
--exclude "*~" \
--exclude "*tar.gz" \
--exclude "*.psd" \
--exclude "*.norsyn" \
/opt/www/www.test.com/ server2:/opt/www/www.test.com
--exclude "log/*" \
--exclude "*~" \
--exclude "*tar.gz" \
--exclude "*.psd" \
--exclude "*.norsyn" \
/opt/www/www.test.com/ server2:/opt/www/www.test.com
When I run the script, sysetm
prompt out the followings :
sh: rsync: not
found
unexpected EOF in read_timeout
unexpected EOF in read_timeout
I have already created a rhosts
table on both servers and this script run on 'ROOT' use.
Can anything help me how to solve the
problem
Thanks
Eric
