From ae7e5fe0fc41e9e0fed5f725f9bf827bb3cb269f Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Wed, 13 Sep 2023 23:01:30 +0800 Subject: [PATCH] =?UTF-8?q?rsync=E6=8E=92=E9=99=A4=E4=B8=B4=E6=97=B6?= =?UTF-8?q?=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cluster.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cluster.sh b/cluster.sh index 2f6c271..4f30699 100755 --- a/cluster.sh +++ b/cluster.sh @@ -19,9 +19,9 @@ sed -e "s/__MASTER1__/${MASTER1}/g" \ -i keepalived/*.conf # 分发仓库文件 -rsync -avz * root@${MASTER1}:/tmp/ -rsync -avz * root@${MASTER2}:/tmp/ -rsync -avz * root@${MASTER3}:/tmp/ +rsync -avz --exclude=temp * root@${MASTER1}:/tmp/ +rsync -avz --exclude=temp * root@${MASTER2}:/tmp/ +rsync -avz --exclude=temp * root@${MASTER3}:/tmp/ # keepalived 配置 ssh root@${MASTER1} "cd /tmp/keepalived/ && bash install.sh && cp -r keepalived1.conf /etc/keepalived/keepalived.conf && systemctl restart keepalived"