diff --git a/scripts/deploy-nas.sh b/scripts/deploy-nas.sh index 4e86f33..1f41ba5 100644 --- a/scripts/deploy-nas.sh +++ b/scripts/deploy-nas.sh @@ -30,14 +30,14 @@ cd "$SRC" # 레포에서 운영으로 반영할 항목들만 복사/동기화 (필요한 것만 적기) # backend, travel-proxy, deployer, nginx, scripts, docker-compose.yml, .env 등 -RSYNC_OPTS="-rlpt --delete --no-owner --no-group --exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/" +RSYNC_OPTS="-rl --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 - rsync $RSYNC_OPTS "$SRC/$dir/" "$DST/$dir/" + rsync $RSYNC_OPTS "$SRC/$dir/" "$DST/$dir/" || [ $? -eq 23 ] && true done # compose 파일만 동기화 (.env는 절대 동기화하지 않음 — 운영 시크릿 보호) -rsync -lpt --no-owner --no-group "$SRC/docker-compose.yml" "$DST/docker-compose.yml" +rsync -rl --no-owner --no-group "$SRC/docker-compose.yml" "$DST/docker-compose.yml" || [ $? -eq 23 ] && true # 파일 권한 설정 — bgg8988:users 755 DEPLOY_USER="bgg8988"