diff --git a/examples/mirror-to-mirror.sh b/examples/mirror-to-mirror.sh index fa7e88b5..ecb4c10e 100644 --- a/examples/mirror-to-mirror.sh +++ b/examples/mirror-to-mirror.sh @@ -14,11 +14,15 @@ flock -n 200 set -e cd /home/fdroid for section in repo archive; do - for host in fdroid@mirror.f-droid.org; do - # be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section! - rsync --archive --delay-updates --progress --delete \ - /home/fdroid/public_html/${section} \ - ${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/ + echo "Started $section at `date`:" + for host in fdroid@mirror.f-droid.org fdroid@ftp-push.lysator.liu.se; do + set -x + # be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section! + rsync --archive --delay-updates --progress --delete \ + /home/fdroid/public_html/${section} \ + ${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/ & + set +x done + wait done ) 200>/var/lock/root_fdroidmirrortomirror