Exclude AWS CLI and SSO cache from sync-to-vm.sh
This commit is contained in:
@@ -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}/"
|
||||||
|
|||||||
Reference in New Issue
Block a user