PmWiki is a popular wiki software which uses the file system to store wiki pages. We use for our intranet and to document our processes and systems. One of my rising concerns was that it wasn't backed up at all. So I came up with a simple script to backup pmwiki regularly to our Subversion repository. There are two ways in which this can be done. The ideal way is to automatically add files and commit changes whenever a change is made. The second way is to use a cron job to periodically add new files and commit the changes to the subversion repository. Let's look at both of the options and explore the simpler one in details.

Full article (336 words) »