mirror of
https://github.com/EtherDream/jsproxy
synced 2024-11-22 01:49:01 +00:00
上传保留文件属性
This commit is contained in:
parent
11171c2f4e
commit
b5515add9f
@ -1,13 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 功能:同步文件到所有节点,并重启服务
|
||||||
|
|
||||||
HOST=etherdream.com
|
HOST=etherdream.com
|
||||||
NODE=(
|
NODE=(
|
||||||
node-aliyun-hk
|
node-aliyun-hk
|
||||||
node-aliyun-sg
|
node-aliyun-sg
|
||||||
|
node-bwh-los
|
||||||
)
|
)
|
||||||
for v in ${NODE[@]}; do
|
for v in ${NODE[@]}; do
|
||||||
echo "$v upload ..."
|
echo "$v upload ..."
|
||||||
|
|
||||||
rsync . jsproxy@$v.$HOST:server \
|
rsync . jsproxy@$v.$HOST:server \
|
||||||
--delete -r \
|
-r -p \
|
||||||
--exclude='nginx/cache/*' \
|
--exclude='nginx/cache/*' \
|
||||||
--exclude='nginx/logs/*'
|
--exclude='nginx/logs/*'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user