Commit 08a7f6c1 authored by Matthias Andree's avatar Matthias Andree

Also upload to my root server now that it hosts www.fetchmail.info.

parent 2cbe6f65
......@@ -4,6 +4,7 @@
# (C) 2008 - 2014 by Matthias Andree. GNU GPL v3.
: ${SOURCEFORGE_LOGIN=m-a}
: ${ROOTSRV:=$(cat ~/.rootsrv 2>/dev/null)}
# abort on error
set -eu
......@@ -32,8 +33,18 @@ rsync \
"${SOURCEFORGE_LOGIN},fetchmail@web.sourceforge.net:htdocs/" &
pids="$pids $!"
: echo "==> Uploading website (rsync) to local"
: rsync \
echo "==> Uploading website (rsync) to own root server"
rsync \
--chmod=ug=rwX,o=rX,Dg=s --perms \
--copy-links --times --checksum --verbose \
--exclude host-scripts \
--exclude .git --exclude '*~' --exclude '#*#' \
* \
"${ROOTSRV}"://usr/local/www/fetchmail.info/ &
pids="$pids $!"
echo "==> Uploading website (rsync) to local"
rsync \
--chmod=ug=rwX,o=rX,Dg=s --perms \
--copy-links --times --checksum --verbose \
--exclude host-scripts \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment