mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
mirror-to-mirror.sh: set 1h timeout for rsync runs
This script is run every 10 minutes or so to push new files to the primary mirrors. It sets a lock to prevent multiple copies from running in parallel. Yesterday, one rsync process got stuck and never exited, thereby preventing this script from running. Adding a 1h timeout seems like a safe way to deal with this kind of problem. This would not deal with rsync getting so stuck that it fails to heed the timeout, hopefully that's not an issue.
This commit is contained in:
parent
c88eb253f6
commit
ce77a33228
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user