您现在的位置是:网站首页> 编程资料编程资料
shell脚本从SVN推送到多台服务器的代码_linux shell_
2023-05-26
481人已围观
简介 shell脚本从SVN推送到多台服务器的代码_linux shell_
复制代码 代码如下:
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
不是很明白,以后留着慢慢用!!!
您可能感兴趣的文章:
相关内容
- 用expect实现的自动登录到多台服务器的shell脚本_linux shell_
- linux shell 中 2>&1的含义_linux shell_
- linux bash字符串处理大全_linux shell_
- 防止ARP攻击的shell代码_linux shell_
- ubuntu与centos中更换ip的shell代码_linux shell_
- awk中查看包含某两列字符的用法_linux shell_
- 利用kernel提供的接口打印进程号(pid)_linux shell_
- linux shell进度条实现方法_linux shell_
- linux使用select实现精确定时器详解_linux shell_
- 给定链表中间节点指针,删除中间节点的方法_linux shell_
