This is a tar.gz of MoinMoin's data/text directory-- it only contains the text files that are the source of the pages in the wiki. This should be enough information to restore the wiki if something fails. Juergen points out that this script doesn't include the user info or the version info... so it needs work... --AdamFeuer

The script's Python source code is on SeaPigBackupSourceCode.

Here is a bash script I run out of cron to make a nightly backup of the wiki:

# Backup the SeaPIG wiki
#
# Assumes you are on a dialup, have wvdial set up 
# correctly for whatever user you're running this script as,
# and that wget is in your path.
#
# Adam Feuer <adamf at pobox dot com>

WVDIAL_OPTIONS="quiet"
WVDIAL_WAIT_TIME=40
TEST_HOST="www.zipcon.net"
BACKUP_URL="http://www.zipcon.net/~showell/cgi-bin/MoinMoin/backup.py"
BACKUP_DIR="$HOME/proj/seapig/backups/daily"
DATESTR=`date "+%Y%m%d-%H%M"`
BACKUP_FILENAME="SeaPIG-wiki-backup-$DATESTR.tar.gz"

WAS_CONNECTED=0

ping -c 3 $TEST_HOST
if [ 0 = $? ]; then
  WAS_CONNECTED=1
else
  wvdial $WVDIAL_OPTIONS &
  sleep $WVDIAL_WAIT_TIME
fi

cd $BACKUP_DIR
wget -O $BACKUP_FILENAME $BACKUP_URL

if [ 0 = $WAS_CONNECTED ]; then
  killall wvdial
  sleep 2
fi

--AdamFeuer

SeaPigBackup (last edited 2008-03-04 08:33:08 by localhost)