147767b4c1956ab202bccd08693184b4125d0e4d
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

1) ## translation metadata
Mfr Update rsync link to replic...

Mfr authored 15 years ago

2) # Revision: $Revision$
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

3) 
Roger Dingledine fix links to svn mirror, ti...

Roger Dingledine authored 15 years ago

4) #include "head.wmi" TITLE="Tor: Running a Mirror"
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

5) 
6) <div class="main-column">
7) 
8) <h2>Tor: Running a Mirror</h2>
9) <hr />
10) 
11) <p>All of our mirrors are publicly listed on <a href="<page mirrors>">our mirrors page</a>.</p>
12) 
13) <p>
14) If you would like to run a mirror, it's as easy as this command to download
15) everything a mirror should share with the world:
16) <br /> <br />
17) <tt>
Mfr Update rsync link to replic...

Mfr authored 15 years ago

18) rsync -av --delete rsync://rsync.torproject.org/tor tor-mirror/
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

19) </tt>
20) <br /> <br />
21) If you would like to run a dist/ mirror, it's as easy as this command to 
22) download everything a dist mirror should share with the world:
23) <br /> <br />
24) <tt>
Mfr Update rsync link to replic...

Mfr authored 15 years ago

25) rsync -av --delete rsync://rsync.torproject.org/tor/dist tor-mirror-dist/
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

26) </tt>
Jacob Appelbaum Add sample cronjob and a ve...

Jacob Appelbaum authored 15 years ago

27) <br /><br />
28) <p>
29) An example cronjob to update a full mirror once a day may look like so:
30) <tt>
31) <pre>
32) # m h  dom mon dow   command
33) 1 4 * * * rsync -av --delete rsync://rsync.torproject.org/tor /var/www/mirrors/torproject.org/
34) </pre>
35) </tt>
36) </p>
37) <br/>
38) For mirror operators that use Apache, we've created a sample virtual host
39) configuration file to use:
40) <tt>
41) <pre>
42) &lt;VirtualHost 1.2.3.4:80&gt;
43)         ServerAdmin youremail@example.com
44)         ServerName  1.2.3.4
45) 
46)         DocumentRoot /var/www/mirrors/torproject.org
47) 
48)         &lt;Directory /var/www/mirrors/torproject.org/&gt;
49)                 Options MultiViews
50)                 DirectoryIndex index
51)                 AllowOverride None
52)         &lt;/Directory&gt;
53) 
54) &lt;VirtualHost&gt;
55) </pre>
56) </tt>
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

57) <br/> <br/>
58) Please ensure that you keep your mirror updated (we suggest automating this
59) task with something like '<tt>cron</tt>'). Our website, source code and
60) binary releases change often. Tor users everywhere will thank you.
61) </p>
Jacob Appelbaum Add sample cronjob and a ve...

Jacob Appelbaum authored 15 years ago

62) <br/>
Jacob Appelbaum Add a new mirror, change th...

Jacob Appelbaum authored 15 years ago

63) <p>
64) If you are running a mirror, please email
Roger Dingledine keep fighting a losing battle

Roger Dingledine authored 15 years ago

65) <a href="<page contact>">tor-webmaster</a> and we'll add it to the list.