Sharedwww / pushOpen in CoCalc
Author: William A. Stein
Description: the vertramp.org website
1
#!/bin/bash
2
3
#git commit -a -v
4
#git push
5
6
# ssh [email protected] "cd www; git pull"
7
8
echo -e "Updating www-uw-1"
9
rsync -avzhP --delete \
10
--exclude '.git*' --exclude '*push*' \
11
--password-file=/home/sagemath/.rsync_pwfile \
12
/home/vertramp/www/ \
13
rsync://[email protected]/vhosts/vertramp.org/
14
15
echo -e "\n\nUpdating www-uw-2"
16
rsync -avzhP --delete \
17
--exclude '.git*' --exclude '*push*' \
18
--password-file=/home/sagemath/.rsync_pwfile \
19
/home/vertramp/www/ \
20
rsync://[email protected]/vhosts/vertramp.org/
21