Merge branch 'mirror-script-update' into 'master'
mirror-to-mirror.sh: also sync to ftp.lysator.liu.se, in parallel See merge request fdroid/fdroidserver!800
This commit is contained in:
commit
ba5136b684
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue