复制代码 代码如下:
SRCDIR=/letv/data/www/htdocs_user/
MOD=user
IP_LIST=(192.126.32.92 192.126.32.93 192.181.155.160 192.181.155.214 192.181.155.215 192.126.32.171)
for i in ${IP_LIST[*]}
do
echo -e "\n\nPUSH == $i == \n"
/usr/bin/rsync -vzrtopg --progress --delete-after $SRCDIR --exclude=".svn" rsync://$i/$MOD/
done
不是很明白,以后留着慢慢用!!!