Go to page:

Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

Backup

<< | Page list | >>

Notes on how wiki.lyx.org is backed up.

No proper solution for backing up wiki.lyx.org is implemented yet. This is the solution for now.

Backup procedure

Currently the procedure is as follows:

  • Execute the script backup.sh (see below). The result is an archive in ~/backup.
  • The resulting archive then needs to be copied to some other machine

Ideas

  • Implement a secondary site that can take over in case aussie.lyx.org fails
  • Automate the backup procedure

Scripts

aussie.lyx.org:/home/lyx/www/pmwiki/bin/backup.sh

#!/bin/sh
# This script creates a directory '$HOME/backup' if it does not exist,
# and then creates an archive of the wiki files.
#
# Written by Christian Ridderstrom 2006-12-23

# Make backupdir
backupdir=$HOME/backup
mkdir -p $backupdir

# Set name of target file
tg=$backupdir/wiki.lyx.org_`date +'%Y-%m-%d'`.tar.bz2

# Set name of source
src=/home/lyx/www/pmwiki

echo Archiving $src
echo as $tg
echo by executing the command: 
echo tar cjvf $tg $src
echo This will take a while...
tar cjf $tg $src
echo Done.
Edit - History - Print - Recent Changes - All Recent Changes - Search
Page last modified on 2007-03-18 22:17 CET