new-mirror-en

How to create a new mirror

Mirrors

Freepto needs hosting: letting the user download `.img` files, hosting a debian repositories, and stuff like that.

If you want to contribute to freepto, you can setup a new mirror!

How to

You just need some rsync cronjob

Assuming that /var/www/ is the documentroot of your webserver, put

#!/bin/sh
mkdir -p /var/www/freepto
rsync -r friggipizza.freepto.mx::releases/ /var/www/freepto/releases/
rsync -r friggipizza.freepto.mx::torrent/ /var/www/freepto/torrent/

in /etc/cron.hourly/mirrorfreepto then chmod +x /etc/cron.hourly/mirrorfreepto

done!