sshpass -p "${SERVER_PASSWORD}" \
    rsync -avzu --delete \
    `# Version control and editor files` \
    --exclude .git \
    --exclude .vscode \
    --exclude .DS_Store \
    `# Dependencies` \
    --exclude node_modules \
    --exclude vendor \
    `# Dynamic content directories` \
    --exclude storage \
    --exclude uploads \
    --exclude temp \
    --exclude cache \
    --exclude sitepress-multilingual-cms \
    `# Build assets - include specific file types only` \
    --include 'public/build/assets/**.js' \
    --include 'public/build/assets/**.css' \
    --include 'public/build/assets/**.json' \
    --include 'public/build/assets' \
    --exclude 'public/build/assets/**' \
    `# Project scripts` \
    --exclude ssh.sh \
    --exclude remote-local.sh \
    --exclude local-remote.sh \
    --exclude .build-cache \
    --exclude watch-build.sh \
    --exclude sftp-watch.sh \
    --exclude split-conflicts.sh \
    -e ssh . "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}"
