User:Rob Kam/sandbox0/Backing up the wiki

Revision as of 17:16, 10 April 2024 by Rob Kam (talk | contribs) (Created page with "== Mediawiki Dump Generator == You can easily generate a database dump and file dump using the Mediawiki Client Tools' [https://github.com/mediawiki-client-tools/mediawiki-dump-generator 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, suc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 --bypass-cdn-image-compression --delay 0.0 https://SUBDOMAIN.wikitide.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 --bypass-cdn-image-compression --delay 0.0 https://SUBDOMAIN.wikitide.org --user USER --pass PASSWORD

Restoring from backup

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

External links