Skip to content

Commit 2d2fb95

Browse files
committed
mirrors: add note about Arch sync script using /lastsync and /lastupdate
If a mirror wants to save bandwith/CPU noop syncing they can use the script which only runs rsync if /lastupdate has changed.
1 parent 8b5d5a7 commit 2d2fb95

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

web/dev/mirrors.md

+10
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,15 @@ rsync -rtlvH --delete-after --delay-updates --safe-links \
7979
rsync://repo.msys2.org/builds/ ./msys2
8080
```
8181

82+
Our repository layout is compatible with Arch Linux, which means you can use the
83+
following script to sync everything more frequently and efficiently:
84+
85+
https://gitlab.archlinux.org/archlinux/infrastructure/-/blob/master/roles/syncrepo/files/syncrepo-template.sh
86+
87+
```shell
88+
source_url='rsync://repo.msys2.org/builds/'
89+
lastupdate_url='https://repo.msys2.org/lastupdate'
90+
```
91+
8292
To register your mirror please open an issue here:
8393
https://github.com/msys2/msys2.github.io/issues

0 commit comments

Comments
 (0)