Questions answered by this recipe
How do I export my pages, with complete version history, to a Git-based repository?
PmWiki Export works by using a Node script to communicate with a PmWiki cookbook recipe. The cookbook recipe exports PmWiki page history as a JSON object. The Node script retrieves the complete history for all pages, stores the history in a SQLite database, and "replays" each version chronologically in a new Git repository.
See on Github.
Important: This script calls
RestorePage directly, bypassing security settings. I cannot get
HandleAuth to work properly. For that reason, I am intentionally keeping the installation instructions vague. I recommend copying
wiki.d/ locally to a clean installation of PmWiki, and running the export script against a development server.
Change log / Release notes
- 1.0.0 Initial Release