Get the App
SLTechnology News&Howtos  ›  Development  › 

How shell scripts are pushed from SVN to multiple servers

Shulou Source: shulou.com Published: 2022-06-03 07:51:24 11月15日 Update

This article will explain in detail how shell scripts are pushed from SVN to multiple servers. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

The code is as follows:

SRCDIR=/letv/data/www/htdocs_user/MOD=userIP_LIST= (192.126.32.92 192.126.32.93 192.181.155.214 192.181.155.214 192.185.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 's article on "how shell scripts are pushed from SVN to multiple servers" ends here Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.

Tags: Articles multiple servers scripts services more good practical code content articles knowledge references help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Linux Redmi Apple Xiaomi