Files
mtc-project-sync-script/scripts/remote-local.sh

13 lines
367 B
Bash
Raw Normal View History

sshpass -p "${SERVER_PASSWORD}" \
rsync -avzu \
--exclude .vscode \
--exclude .DS_Store \
--exclude node_modules \
--exclude vendor \
--exclude storage \
--exclude uploads \
--exclude temp \
--exclude cache \
--exclude sitepress-multilingual-cms \
-e ssh "${SERVER_USER}@${SERVER_HOST}:${SERVER_PATH}" . # --exclude .git \