From 3852d3b1ad9f6fc3ab727aea73e8857a5e356199 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Sun, 19 Apr 2026 20:07:36 +0200 Subject: [PATCH] Exclude AWS CLI and SSO cache from sync-to-vm.sh --- deploy/sync-to-vm.sh | 3 +++ 1 file changed, 3 insertions(+) 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}/"