From a5a9e02ee01bade66ce7e87f7d788a257466ffec Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 1 Feb 2023 03:06:06 +0000 Subject: [PATCH] download.md: update the rsync instructions --- site/download.md | 55 +++++++++++++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 17 deletions(-) diff --git a/site/download.md b/site/download.md index d3ecbd3..dbddb2e 100644 --- a/site/download.md +++ b/site/download.md @@ -69,6 +69,24 @@ university, USA) RSYNC mirrors {#rsync} ------------- +The following rsync mirrors are available publicly: + +* (University of Kent, +UK) +* (Princeton university, USA) +* (linux.ro, Romania) +* (koddos.net, Netherlands) +* (koddos.net, Hong Kong) + +Are you running a mirror? Contact the libreboot project, and the link will be +added to this page! + +You can make your rsync mirror available via your web server, and also configure +your *own* mirror to be accessible via rsync. There are many resources online +that show you how to set up an rsync server. + +How to create your own rsync mirror: + Useful for mirroring Libreboot's entire set of release archives. You can put an rsync command into crontab and pull the files into a directory on your web server. @@ -92,30 +110,33 @@ Now you can run rsync, for instance: rsync -avz --delete-after rsync://rsync.libreboot.org/mirrormirror/ /var/www/html/libreboot/ +You might put this in an hourly crontab. For example: + + crontab -e + +Then in crontab, add this line and save/exit (hourly crontab): + + 0 * * * * rsync -avz --delete-after rsync://rsync.libreboot.org/mirrormirror/ /var/www/html/libreboot/ + **It's extremely important to have the final forward slash (/) at the end of each path, in the above rsync command. Otherwise, rsync will behave very strangely.** +**NOTE: `rsync.libreboot.org` is not directly accessible by the public, except +those whose IPs are whitelisted. For bandwidth reasons, the firewall running +on libreboot.org blocks incoming rsync requests, except by specific IPs.** + +**If you wish to run an rsync mirror, sync from one of the third party mirrors +below and set up your mirror. You can then contact Leah Rowe, to have your IP +addresses whitelisted for rsync usage - if the IP addresses match DNS A/AAAA +records for your rsync host, this can be used. A script runs in an hourly +crontab on libreboot.org, that fetches the A/AAAA records of whitelisted +rsync mirrors, automatically adding rules permitting them to get through the +firewall.** + If you wish to regularly keep your rsync mirror updated, you can add it to a crontab. This page tells you how to use crontab: -The following rsync mirrors are available: - -* (Libreboot project official mirror) -* (University of Kent, -UK) -* (Princeton university, USA) -* (linux.ro, Romania) -* (koddos.net, Netherlands) -* (koddos.net, Hong Kong) - -Are you running a mirror? Contact the libreboot project, and the link will be -added to this page! - -You can make your rsync mirror available via your web server, and also configure -your *own* mirror to be accessible via rsync. There are many resources online -that show you how to set up an rsync server. - HTTP mirrors {#http} ------------