mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
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
1 changed files with 9 additions and 5 deletions
|
|
@ -14,11 +14,15 @@ flock -n 200
|
||||||
set -e
|
set -e
|
||||||
cd /home/fdroid
|
cd /home/fdroid
|
||||||
for section in repo archive; do
|
for section in repo archive; do
|
||||||
for host in fdroid@mirror.f-droid.org; do
|
echo "Started $section at `date`:"
|
||||||
# be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section!
|
for host in fdroid@mirror.f-droid.org fdroid@ftp-push.lysator.liu.se; do
|
||||||
rsync --archive --delay-updates --progress --delete \
|
set -x
|
||||||
/home/fdroid/public_html/${section} \
|
# be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section!
|
||||||
${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/
|
rsync --archive --delay-updates --progress --delete \
|
||||||
|
/home/fdroid/public_html/${section} \
|
||||||
|
${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/ &
|
||||||
|
set +x
|
||||||
done
|
done
|
||||||
|
wait
|
||||||
done
|
done
|
||||||
) 200>/var/lock/root_fdroidmirrortomirror
|
) 200>/var/lock/root_fdroidmirrortomirror
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue