Manual:importDump.php
From MediaWiki.org
MediaWiki File: importDump.php | |
---|---|
Location: | maintenance/ |
Source code: | master • 1.24.2 • 1.23.9 |
Classes: | BackupReader |
Details[edit | edit source]
importDump.php file is a maintenance script to import XML dump files into the current wiki. It reads pages from an XML file as produced from Special:Export or dumpBackup.php, and saves them into the current wiki.
Examples[edit | edit source]
php importDump.php --conf ../LocalSettings.php /path_to/dumpfile.xml.gz wikidb
or
php importDump.php < dumpfile.xml
Options[edit | edit source]
Option/Parameter | Description |
---|---|
--report | Report position and speed after every n pages processed. |
--namespaces | Import only the pages from namespaces belonging to the list of pipe-separated namespace names or namespace indexes. |
--dry-run | Parse dump without actually importing pages. |
--debug | Output extra verbose debug information. |
--uploads | Process file upload data if included (experimental). |
--no-updates | Disable link table updates. Is faster but leaves the wiki in an inconsistent state. |
--image-base-path | Import files from a specified path. |
Notes[edit | edit source]
For very large data sets, importDump.php may be slow; there are alternate methods which can be much faster for full site restoration, see Manual:Importing XML dumps.
See also[edit | edit source]
- Importing XML dumps for more detailed instructions.
- Manual:DumpBackup.php for instructions on creating a dump.
External links[edit | edit source]
- ImportDump.php source code on MediaWiki master.