脚本之家,脚本语言编程技术及教程分享平台!
分类导航

Python|VBS|Ruby|Lua|perl|VBA|Golang|PowerShell|Erlang|autoit|Dos|bat|shell|

服务器之家 - 脚本之家 - shell - shell脚本从SVN推送到多台服务器的代码

shell脚本从SVN推送到多台服务器的代码

2022-12-15 11:24shell教程网 shell

shell 脚本从SVN推送到多台服务器,需要的朋友可以参考下

复制代码 代码如下:


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



不是很明白,以后留着慢慢用!!!

延伸 · 阅读

精彩推荐