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 $lockfile

Naturally this will require some customisation. All the paths will need to be updated for your site, and quite likely the rsync options too.

Mirrors/RsyncScript (last edited 2010-02-08 08:58:08 by kgoetz)

gNewSense is a project developed by volunteers all over the world and it's supported by the Free Software Foundation.

The content in this Web site can be used as follows:

All documentation is available under the terms of the GFDL with no invariant sections. (note on the license)

Artwork is Free Cultural Work and is available under the terms of the cc-by-sa license.