I wrote a conversion script to move from an existing Very Quick Wiki (vqWiki) to a new MoinMoin Wiki.
The script was initially based on the MediaWikiConverter script "mediawiki2moin.php" found on this site, but was heavily modified to handle the very different vqWiki markup.
It was successfully used to migrate my workgroup's Wiki (with about 325 pages and 50 attachments). For this number of pages, the script only takes a few minutes to run.
The script does the following:
- Gathers all pages (current and historical revisions) from vqWiki
Deletes any existing page in new MoinMoin wiki with name same as one on vqWiki
Change (most) all formatting in pages to MoinMoin style markup
Copies all versions of pages into MoinMoin, creates a new page for each on MoinMoin wiki (starting at revision 00000001 and going up)
- Correctly identifies the current version
- Updates the edit-log for each version of a page, including the correct modification time
- Copies attachments from old to new wiki for each page
The script does not do the following:
Determine the user who made each revision. Instead, a hard-coded server address will be used. This information is not easily accessible in vqWiki, plus MoinMoin requires a user id in the edit-log file, which does not necessarily exist for the users in vqWiki.
- Update the main edit-log, so the pre-migration changes don't show up in the main "Recent Changes", although this could be added if desired.
Download the script: vqwiki_to_moin_v2.php
There are quite a few ways that this script could be improved, so please feel free!