Difference between revisions of "Setting up a mirror"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
m (Created)
 
(updated)
Line 1: Line 1:
To set up a mirror of OpenVZ download site, you should use a separate [[VE]] (or a dedicated server, but a VE is sufficient). The mirrored contents should be available through HTTP and optionally FTP.
+
To set up a mirror of OpenVZ download site, you should use a separate [[VE]] (or a dedicated server, but a VE is sufficient). The mirrored contents should be available through HTTP and FTP; both are optional but of course at least one should be there. In addition, you might provide rsync access — this is highly optional.
  
 
To initially mirror the contents, run
 
To initially mirror the contents, run
 
<pre>rsync -av --delete rsync://download.openvz.org/openvz-download /local/path</pre>
 
<pre>rsync -av --delete rsync://download.openvz.org/openvz-download /local/path</pre>
  
Next step is to add the cron job to run rsync regularly (at least hourly).
+
Next step is to add the cron job to run the same rsync command regularly. It is suggested to do that at least hourly.
  
When you are ready to open up your mirror, set up HTTP and FTP access to it. Preferrably, the mirror should be available at <tt><nowiki>http://openvz.yoursite.com/</nowiki></tt> or <tt><nowiki>http://mirrors.yoursite.com/openvz/</nowiki></tt> (same with ftp).
+
When you are ready to open up your mirror, set up HTTP/FTP access to it. Preferrably, the mirror should be available at <tt><nowiki>http://openvz.yoursite.com/</nowiki></tt> or <tt><nowiki>http://mirrors.yoursite.com/openvz/</nowiki></tt> (same with ftp).
  
Final step is to announce the mirror by sending an email to [mailto:mirrors@openvz.org mirrors@openvz.org]. It should contain the following information:
+
Final step is to announce the mirror by sending an email to [mailto:mirrors@openvz.org mirrors@openvz.org]. It should contain at least the following information:
  
* physical location of your site (country, state/province, city)
+
* physical location of your site (country, state/province, city);
* frequency of updates
+
* frequency of updates;
* URL(s) to access the mirror
+
* URL(s) to access the mirror;
 +
* Email address of mirror admin (whom to contact in case of problems). It will better be some generic address (like mirroradmin@ or something), forwarded to at least a few people.
  
 
== Some stats ==
 
== Some stats ==
OpenVZ download site is about 10GB now (June 2006), so your mirror will need at least the same space. It is growing at about 1GB a month or so.
+
OpenVZ download site is about 10GB now (Jan 2007), so your mirror will need at least the same space. It is growing at about 1GB a month or slower.
  
The traffic is about 100 to 200 GB per month; it should me lower than that for your mirror.
+
The traffic for download.openvz.org is about 100 to 250 GB per month; it should me lower than that for your mirror.
  
 
== See also ==
 
== See also ==

Revision as of 08:17, 18 January 2007

To set up a mirror of OpenVZ download site, you should use a separate VE (or a dedicated server, but a VE is sufficient). The mirrored contents should be available through HTTP and FTP; both are optional but of course at least one should be there. In addition, you might provide rsync access — this is highly optional.

To initially mirror the contents, run

rsync -av --delete rsync://download.openvz.org/openvz-download /local/path

Next step is to add the cron job to run the same rsync command regularly. It is suggested to do that at least hourly.

When you are ready to open up your mirror, set up HTTP/FTP access to it. Preferrably, the mirror should be available at http://openvz.yoursite.com/ or http://mirrors.yoursite.com/openvz/ (same with ftp).

Final step is to announce the mirror by sending an email to mirrors@openvz.org. It should contain at least the following information:

  • physical location of your site (country, state/province, city);
  • frequency of updates;
  • URL(s) to access the mirror;
  • Email address of mirror admin (whom to contact in case of problems). It will better be some generic address (like mirroradmin@ or something), forwarded to at least a few people.

Some stats

OpenVZ download site is about 10GB now (Jan 2007), so your mirror will need at least the same space. It is growing at about 1GB a month or slower.

The traffic for download.openvz.org is about 100 to 250 GB per month; it should me lower than that for your mirror.

See also