Rsyncing gNewSense
Those wishing to build a mirror of gNewSense can mirror using tools like debmirror, or rsync. This example script will get you off to mirroring the current gNewSense release.
Available targets
There are currently 3 gNewSense rsync targets available. These are:
[gnewsense]
This mirrors all of gNewSense
[deltah]
Our current stable release
[cdimage]
CD iso's for our current release.
Rsync script
#!/bin/sh -ex
lockfile=/tmp/gnewsense.lock
domain=us.archive.gnewsense.org
module=deltah
outpath=/srv/mirrors/gnewsense/
rsyncoptions="-av -P --delete --delete-before"
loggingdir=/var/log/gnewsense-mirror.log
if [ -f $lockfile ]; then
echo "$0 appears to be already running."
exit 1
fi
/usr/bin/rsync $rsyncoptions $domain::$module $outpath 2>&1 > $loggingdir
rm -f $lockfileNaturally this will require some customisation. All the paths will need to be updated for your site, and quite likely the rsync options too.
