上传保留文件属性

This commit is contained in:
zjcqoo 2019-04-29 17:49:16 +08:00
parent 11171c2f4e
commit b5515add9f

View File

@ -1,13 +1,17 @@
#!/usr/bin/env bash
# 功能:同步文件到所有节点,并重启服务
HOST=etherdream.com
NODE=(
node-aliyun-hk
node-aliyun-sg
node-bwh-los
)
for v in ${NODE[@]}; do
echo "$v upload ..."
rsync . jsproxy@$v.$HOST:server \
--delete -r \
-r -p \
--exclude='nginx/cache/*' \
--exclude='nginx/logs/*'