Exclude AWS CLI and SSO cache from sync-to-vm.sh

This commit is contained in:
2026-04-19 20:07:36 +02:00
parent ddea23e80a
commit 3852d3b1ad
+3
View File
@@ -96,12 +96,15 @@ for entry in "${MOUNT_PATTERNS[@]}"; do
ssh_cmd "mkdir -p ${remote_path}" ssh_cmd "mkdir -p ${remote_path}"
# Sync with rsync (fall back to scp if rsync unavailable) # Sync with rsync (fall back to scp if rsync unavailable)
# Exclude generated/cached content that gets recreated on the remote
if command -v rsync &>/dev/null; then if command -v rsync &>/dev/null; then
rsync -az --progress \ rsync -az --progress \
--exclude='node_modules' \ --exclude='node_modules' \
--exclude='__pycache__' \ --exclude='__pycache__' \
--exclude='.venv' \ --exclude='.venv' \
--exclude='*.pyc' \ --exclude='*.pyc' \
--exclude='cli/cache' \
--exclude='sso/cache' \
-e "ssh ${SSH_OPTS}" "${local_path}/" "${SSH_HOST}:${remote_path}/" -e "ssh ${SSH_OPTS}" "${local_path}/" "${SSH_HOST}:${remote_path}/"
else else
scp -o "ControlPath=${CTRL_SOCKET}" -r "${local_path}/." "${SSH_HOST}:${remote_path}/" scp -o "ControlPath=${CTRL_SOCKET}" -r "${local_path}/." "${SSH_HOST}:${remote_path}/"