mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-02 09:10:11 +02:00
add script used to rsync repo to primary mirrors
This commit is contained in:
parent
3c148941f7
commit
94cd2a960c
9
examples/mirror-to-mirror.sh
Normal file
9
examples/mirror-to-mirror.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user