17 lines
359 B
Bash
17 lines
359 B
Bash
#!/bin/bash
|
|
|
|
set -eu
|
|
|
|
LOCALDIR=/cygdrive/c/www/m6/code/sites/code.ivysaur.me/wwwroot
|
|
|
|
chmod -R 644 "$LOCALDIR"
|
|
chmod -R a+X "$LOCALDIR"
|
|
|
|
rsync --delete -avz -e "ssh -i /cygdrive/c/www/ms1_deploy_key -p 2222" --progress \
|
|
"$LOCALDIR" \
|
|
www-data@ms1.ivysaur.me:~/code.ivysaur.me/
|
|
|
|
# n.b. set chmod -R a+rX remote side?
|
|
|
|
read -p "Press any key to continue..."
|