/
mirroring.html
104 lines (85 loc) · 5.05 KB
/
mirroring.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="PGXN: PostgreSQL Extension Network" />
<meta name="keywords" content="PostgreSQL, pgsql, plpgsql, plperl, extension, distribution, archive, zcan, pgxn, pgxnnet, pgan, cpan, mirror" />
<link href="./css/global.css" rel="stylesheet" type="text/css" />
<title>PGXN: PostgreSQL Extension Network—Mirroring</title>
</head>
<body>
<div id="banner"><a href="./"><img src="images/banner.png" alt="PGXN: PostgreSQL Extension Network" /></a></div>
<div id="masthead">
<ul>
<li><a href="http://manager.pgxn.org/">Upload</a></li>
<li><a href="status.html">Status</a></li>
<li><a href="http://wiki.postgresql.org/wiki/PGXN">Spec</a></li>
<li><a href="http://blog.pgxn.org/">Blog</a></li>
<li><a href="http://twitter.com/pgxn/">Twitter</a></li>
<li><a href="contributors.html">Contributors</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><a href="mirroring.html">Mirroring</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
<div id="content">
<div id="main">
<div class="article">
<h2>Mirroring PGXN</h2>
<p>Hosting a mirror is simple. All you need is:</p>
<ul>
<li>A reasonably fast internet connection</li>
<li>Space for storage—not much at this point</li>
<li>An <a href="http://rsync.samba.org/"><code>rsync</code></a> client</li>
<li>A web server</p>
</ul>
<p>The <code>rsync</code> address for the PGXN master mirror is
rsync://master.pgxn.org/pgxn.</p>
<p>Once you have the rsync client installed on your system and the
disk space mapped out, add an entry to your crontab like so:</p>
<pre style="white-space:normal">
0 20 * * * /usr/bin/rsync -az --delete rsync://master.pgxn.org/pgxn /usr/local/pgxn
</pre>
<p>On Windows, use AT like so:</p>
<pre style="white-space:normal">
AT 20:00 /every:M,T,W,Th,F,S,Su "C:\Program Files\Rsync\rsync -az <span style="white-space:nowrap">--delete</span> rsync://master.pgxn.org/pgxn C:\Projects\PGXN"
</pre>
<p>Please do not sync more than once every hour. And realistically
you only need to sync once or twice a day. Next, set up a web
server to serve the mirror. If your rsync is already in the
subdirectory of a web server root, you should be golden.
Otherwise, if you’re using Apache, you can set up a virtual host
like so (assuming that you’re <code>rsync</code>ing to
<code>/usr/local/pgxn</code>):</p>
<pre>
<VirtualHost *:80>
DocumentRoot /usr/local/pgxn
ServerName pgxn.example.org
CustomLog /var/log/httpd/access_log combined
<Directory /usr/local/pgxn>
AllowOverride All
Allow from all
Options +Indexes
</Directory>
</VirtualHost>
</pre>
<p>If you’d like to register your mirror, <a href="mailto:pgxn@pgexperts.com?subject=Mirror Registration&body= "mirror.hostname": {%0a "url": "http://hostname.of.the.pgxn/mirroring/site/root",%0a "frequency": "daily/bidaily/.../weekly",%0a "location": "city, (area?, )country, continent (lon lat)",%0a "organization": "full organization name",%0a "timezone": "Area/Location zoneinfo tz",%0a "contact": "email.address.to.contact@for.this.mirror",%0a "bandwidth": "1Gbps, 100Mbps, DSL, etc.",%0a "src": "rsync://from.which.host/is/this/site/mirroring/from/",%0a "rsync": "rsync://hostname.of.the.mirror/path (if you provide it)",%0a "notes": "(optional field) access restrictions, for example?"%0a }%0a">send us email</a> with all the details and we’ll get you registered.</p>
</div>
</div>
<div id="secondary">
<blockquote>
<p>Help the PostgreSQL community build its own extension search and distribution platform.</p>
</blockquote>
<div class="center">
<img src="./images/thermometer.png" alt="Thermometer" />
<p>Goals Met!</p>
</div>
</div>
<ul id="footer" class="clearfix">
<li>Design: <span>Get <a href="http://www.letseat.at">restaurant website templates</a> at </span><a href="http://www.letseat.at">LetsEat</a>, Courtesy <a href="http://www.openwebdesign.org">Open Web Design</a>, Thanks to <a href="http://www.chinatours.com/">China Travel Tours</a></li>
<li>© 2010 PostgreSQL Experts, Inc. Some Rights Reserved.</li>
</ul>
</div>
</body>
</html>