fix(deployer): rsync에서 소유자/그룹 보존 비활성화 — chgrp 권한 오류 해결

-a 대신 -rlpt --no-owner --no-group 사용. 소유권은 이후 chown으로 설정.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-06 21:36:59 +09:00
parent cb750f888b
commit 5530402604

View File

@@ -30,15 +30,14 @@ cd "$SRC"
# 레포에서 운영으로 반영할 항목들만 복사/동기화 (필요한 것만 적기) # 레포에서 운영으로 반영할 항목들만 복사/동기화 (필요한 것만 적기)
# backend, travel-proxy, deployer, nginx, scripts, docker-compose.yml, .env 등 # backend, travel-proxy, deployer, nginx, scripts, docker-compose.yml, .env 등
RSYNC_EXCLUDES="--exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/" RSYNC_OPTS="-rlpt --delete --no-owner --no-group --exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/"
for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab nginx scripts; do for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab nginx scripts; do
rsync -a --delete $RSYNC_EXCLUDES \ rsync $RSYNC_OPTS "$SRC/$dir/" "$DST/$dir/"
"$SRC/$dir/" "$DST/$dir/"
done done
# compose 파일만 동기화 (.env는 절대 동기화하지 않음 — 운영 시크릿 보호) # compose 파일만 동기화 (.env는 절대 동기화하지 않음 — 운영 시크릿 보호)
rsync -a "$SRC/docker-compose.yml" "$DST/docker-compose.yml" rsync -lpt --no-owner --no-group "$SRC/docker-compose.yml" "$DST/docker-compose.yml"
# 파일 권한 설정 — bgg8988:users 755 # 파일 권한 설정 — bgg8988:users 755
DEPLOY_USER="bgg8988" DEPLOY_USER="bgg8988"