Merge branch 'mirror-rsync-timeout' into 'master'

mirror-to-mirror.sh: set 1h timeout for rsync runs

See merge request fdroid/fdroidserver!1381
This commit is contained in:
Jochen Sprickerhof 2023-07-25 13:03:41 +00:00
commit 04aa9d2a06

View file

@ -19,6 +19,7 @@ for section in repo archive; do
set -x set -x
# be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section! # be super careful with the trailing slashes here! if one is wrong, it'll delete the entire section!
rsync --archive --delay-updates --progress --delete \ rsync --archive --delay-updates --progress --delete \
--timeout=3600 \
/home/fdroid/public_html/${section} \ /home/fdroid/public_html/${section} \
${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/ & ${host}:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/ &
set +x set +x