mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
add script used to rsync repo to primary mirrors
This commit is contained in:
parent
3c148941f7
commit
94cd2a960c
1 changed files with 9 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue