Tor: Running a Mirror
All of our mirrors are publicly listed on our mirrors page.
If you would like to run a mirror, it's as easy as this command to download
everything a mirror should share with the world:
rsync -av --delete rsync://rsync.torproject.org/tor tor-mirror/
If you would like to run a dist/ mirror, it's as easy as this command to
download everything a dist mirror should share with the world:
rsync -av --delete rsync://rsync.torproject.org/tor/dist tor-mirror-dist/
An example cronjob to update a full mirror once a day may look like so:
1 4 * * * rsync -av --delete rsync://rsync.torproject.org/tor /var/www/mirrors/torproject.org/
For mirror operators that use Apache, we've created a sample virtual host configuration file to use:
<VirtualHost 1.2.3.4:80>
ServerAdmin youremail@example.com
ServerName 1.2.3.4
DocumentRoot /var/www/mirrors/torproject.org
<Directory /var/www/mirrors/torproject.org/>
Options MultiViews
DirectoryIndex index
AllowOverride None
</Directory>
<VirtualHost>
Please ensure that you keep your mirror updated (we suggest automating this task with something like 'cron'). Our website, source code and binary releases change often. Tor users everywhere will thank you.
If you are running a mirror, please email tor-webmaster and we'll add it to the list.
