Ask
NextGens for credentials... and don't forget to give us the url of your mirror!
Here is the script you should be using:
#!/bin/bash
USERNAME="yourusername"
PASSWORDFILE="/path/to/password"
DEST="/var/www/freenet-mirror/"
LOCKFILE="/tmp/freenet-mirror.pid"
if test -e $LOCKFILE
then
if [[ $(ps aux |grep -c $(cat $LOCKFILE)) -eq 0 ]]
then
rm -f $LOCKFILE
echo "Dead lockfile, removing"
else
echo "$LOCKFILE detected, mirroring aborted"
exit
fi
fi
echo $$ > $LOCKFILE
rsync --password-file "$PASSWORDFILE" -azr -L --safe-links --chmod=ugo=rwX --delete-after "rsync://$USERNAME@emu.freenetproject.org/freenet-mirror" "$DEST"
rm -f $LOCKFILE
Most mirrors are syncing every 5mins... There is a script which *will* remove your mirror from the load-balancing script if it's not up to date (older than 15mins).
You can see the live-status of freenet-mirrors at
http://stats.freenetproject.org/mirror_status.html∞
Note : If you run a mirror, you can expect around 40GB per month traffic (may 2008 statistics).