Backing up the wiki

Revision as of 12:20, 10 June 2024 by Rob Kam (talk | contribs)
Jump to navigation Jump to search

Mediawiki Dump Generator

You can easily generate a database dump and file dump using the Mediawiki Client Tools' Mediawiki Dump Generator Python 3 dumpgenerator script, (full instructions are at this link). The result will include an XML dump with full page history, a dump of all images and files along with associated descriptions and a siteinfo.json file containing information about features, such as the installed extensions and skins.

e.g. dumpgenerator --xml --xmlrevisions --images --delay 0.0 https://SUBDOMAIN.miraheze.org

To dump a private wiki you will have to use a login that has at least read permission on the wiki.

e.g. dumpgenerator --xml --xmlrevisions --images https://SUBDOMAIN.miraheze.org --user USER --pass PASSWORD

Restoring from backup

See MediaWiki.org, specifically Manual:Importing XML dumps and Manual:importImages.php.

External links