add script used to rsync repo to primary mirrors

This commit is contained in:
Hans-Christoph Steiner 2020-09-11 13:28:43 +02:00
parent 3c148941f7
commit 94cd2a960c
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
(
flock -n 200
set -e
cd /home/fdroid
rsync --delay-updates --progress -a --delete /home/fdroid/public_html/archive/ fdroid@fdroid-mirror.at.or.at:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/archive/
rsync --delay-updates --progress -a --delete /home/fdroid/public_html/repo/ fdroid@fdroid-mirror.at.or.at:/srv/fdroid-mirror.at.or.at/htdocs/fdroid/repo/
) 200>/var/lock/root_fdroidmirrortomirror