diff --git a/deploy/sync-to-vm.sh b/deploy/sync-to-vm.sh index 4253478..1744083 100755 --- a/deploy/sync-to-vm.sh +++ b/deploy/sync-to-vm.sh @@ -96,12 +96,15 @@ for entry in "${MOUNT_PATTERNS[@]}"; do ssh_cmd "mkdir -p ${remote_path}" # 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 rsync -az --progress \ --exclude='node_modules' \ --exclude='__pycache__' \ --exclude='.venv' \ --exclude='*.pyc' \ + --exclude='cli/cache' \ + --exclude='sso/cache' \ -e "ssh ${SSH_OPTS}" "${local_path}/" "${SSH_HOST}:${remote_path}/" else scp -o "ControlPath=${CTRL_SOCKET}" -r "${local_path}/." "${SSH_HOST}:${remote_path}/"