Changes

Jump to navigation Jump to search
355 bytes added ,  08:04, 7 August 2014
→‎For mirror administrators: Add tutorial commands
Line 22: Line 22:  
All you need is a web server with enough bandwidth to serve the files. To set up a new mirror, the site administrator needs to:
 
All you need is a web server with enough bandwidth to serve the files. To set up a new mirror, the site administrator needs to:
   −
* Set up rsync job to synchronize a copy of the files on http://downloads.sugarlabs.org onto their local system. You can schedule it daily or more frequently, but please don't sync more often than once per hour.
+
* Set up rsync job to synchronize a copy of the files on http://download.sugarlabs.org onto their local system. For example copy it into ''/rsync/download.suarlabs.org/'':
 +
 
 +
  rsync -avzh rsync://download.sugarlabs.org/pub /rsync/download.sugarlabs.org
 +
 
 +
* You can schedule it daily or more frequently, but please don't sync more often than once per hour. For example, use cron to re-sync every 2 hours (on linux):
 +
 
 +
  echo "0 */2 * * * rsync -avzh rsync://download.sugarlabs.org/pub /rsync/download.sugarlabs.org" > asloSyncCronJob.txt
 +
  crontab asloSyncCronJob.txt
 +
 
 
* Publish the files via HTTP and -- if possible -- rsync. Rsync allows for efficient [http://www.mirrorbrain.org/features/#mirror-monitoring mirror monitoring] (scanning). FTP is less efficient, but still preferred over an HTTP-only mirror.
 
* Publish the files via HTTP and -- if possible -- rsync. Rsync allows for efficient [http://www.mirrorbrain.org/features/#mirror-monitoring mirror monitoring] (scanning). FTP is less efficient, but still preferred over an HTTP-only mirror.
 
* Alert the [[Infrastructure_Team/Contacts|Sugar Labs System Administrators]] that they would like their mirror into rotation, including the following information in the request:
 
* Alert the [[Infrastructure_Team/Contacts|Sugar Labs System Administrators]] that they would like their mirror into rotation, including the following information in the request:

Navigation menu