Upgrading DokuWiki

DokuWiki is a really lightweight wiki which I’ve used since 2006. Today I decided it was time for an update and so these are the steps I followed.

cd /srv/www/dokuwiki
git commit
git push
wget http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz
tar xzf dokuwiki-stable.tgz --strip-components=1
touch conf/local.php && rm -rf data/cache/*
rm dokuwiki-stable.tgz
grep -Ev '^($|#)' data/deleted.files | xargs -n 1 rm -vf
git add -A
git commit
git push

Notes:

  • the rm (xargs + grep) command removes unused files.
  • --strip-components removes path segments from the filename of the items in the tar ball.
  • Avoid getting the directory with cached content end up under git’s supervision.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.