How to backup DokuWiki?

:?: How can I backup my DokuWiki? What parts do I need to backup?

:!: Since DokuWiki does not use a database, backups are really simple. All you need to do is copy the files. The easiest way is just to backup your whole DokuWiki directory.

If you want to save some space you should at least backup the following directories:

You can exclude the data/cache, data/index, data/locks, and data/tmp directories.

lib folder contains also core files, which should not be replaced, probably only plugins and tpl folders are useful.

Note: if you installed DokuWiki through a 3rd party package like Debian the directory layout may differ.

See also