Table of Contents

One-time backup

Version 1

This backs up the entire dokuwiki directory into a bz2 tar file. It is a simplified version of the script below. The commands are most likely to be run manually. The commands assume that you are in the parent directory of the dokuwiki install. My entire dokuwiki is in ~/wiki 1). I ran this from ~ . The second and third commands are not really needed, but if you want to have multiple backups, it may help

cd ~
mkdir wikibackup
cd wikibackup/
tar -cjf wiki.tar.bz2 ../wiki

Version 2

A simplified version of the above, with the addition of the current date to the filename, is as follows:

tar -cjf backupDirFromCurrentWorkingDir/nameOfBackupFile.`date '+%d%m%y'`.tar.bz2 ../dirToBeBackedUp/

Explanation of paramaters and options:

Links

See here for scripts and other advanced alternatives:

1) tilde ~ means home directory, the actual full path is longer