Opera provides a mirror master for read-only rsync access by approved mirror sites. The access to the master servers will be restricted by the mirror sites's IP address/network. Only the officially approved mirror sites will be allowed to access the mirror master.
The basic command to pull the public distribution from the mirror master is something like:
rsync -a mirror.opera.com::pub-opera /var/mirror/pub/opera
Recommended configuration directives:
Additional configuration directives:
For more info about rsync: rsync.samba.org
We suggest that the mirrors are configured to syncronize with the mirror master at least twice a day, ideally 4 times a day. To prepare the mirrors with new releases before they are announced to the public, we suggest the following hours for updates (all time settings in UTC):
To spread the load from mirror sites somehow, the mirror sites should use a random minute setting for syncronization - any minute in the following hour is recommended.
The mirrors are free to mount the public opera directory wherever they find useful in their local filesystem (but make sure this location fits with the links on the Opera website download page). It is not allowed to change the internal directory structure below /pub/opera/, as this may cause confusion both for download links and statistics. If needed, create symlinks into the official structure instead. The official directory structure will be the same as the one provided by ftp.opera.com.
Not neeeded.
Download statistics from mirror sites may be sent by mail to
mirror-report[at]opera.com. If possible set the subjectline (or
from address) to use your mirror site's domain name. At the moment we can
handle xferlog and apache log formats - other formats may be supported.
Opera does not require any privacy information from the logs like client
IP's, refeerers etc. A sample statistic script may be provided later.
#!/bin/sh # Script for rsync pull from mirror.opera.com TARGET="/var/mirror/ftp.opera.com/pub/opera" SOURCE="mirror.opera.com::pub-opera" OPTIONS="-a --delete" rsync $OPTIONS $SOURCE $TARGET ### END
Note: May be dropped into /etc/cron.d
# This will run a rsync pull 15 minutes over every 6 hours. 15 */6 * * * root rsync -a --delete mirror.opera.com::pub-opera /var/mirror/ftp.opera.com/pub/opera ### END