Search:   Help

Navigation

Groups

LyX documentation

Edit

Shared groups

Links

Backup

<< | Page list | >>

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

Table of contents (hide)

  1.   1.  Backup procedure
  2.   2.  Ideas
  3.   3.  Scripts
    1.   3.1  aussie.lyx.org:/home/lyx/www/pmwiki/bin/backup.sh

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

1.  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

2.  Ideas

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

3.  Scripts

3.1  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 21:17 UTC