Refactor script building / add to gitignore / 2 new scripts
This commit is contained in:
12
scripts/remote-local.sh
Normal file
12
scripts/remote-local.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
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 \
|
||||
Reference in New Issue
Block a user