summaryrefslogtreecommitdiff
path: root/sync_ssl.sh
blob: 49d484d7fa530df6120808faeb8e46e29aee45b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

cp -av public ssl-public
find ssl-public -type f -exec \
	sed -i 's@http://www\.andreasbaumann\.cc@https://www.andreasbaumann.cc@g' {} \;

rsync -e 'ssh -p 2221' -av \
	--usermap=abaumann:http \
	--groupmap=abaumann:http \
	--delete-after \
	--exclude '*~' \
	ssl-public/. root@andreasbaumann.cc:/srv/http/ssl-www.andreasbaumann.cc/.