Manual:ImportDump.php/en

Details
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, and saves them into the current wiki.

In case you get an error "failed to open stream: No such file or directory", make sure that the specified file does exist and that PHP has access to it.

Examples
or

Options
{| style="width: 75%; border:1px solid #338800; background-color:#FEFEFE;" ! 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. Run after the import to correct the link table.
 * --image-base-path || Import files from a specified path.
 * --skip-to || Start from the given page number, by skipping first n-1 pages.
 * --username-prefix || Adds a prefix to usernames. Due to this bug it may be necessary to specify  when importing files.
 * -|}
 * --no-updates || Disable link table updates. Is faster but leaves the wiki in an inconsistent state. Run after the import to correct the link table.
 * --image-base-path || Import files from a specified path.
 * --skip-to || Start from the given page number, by skipping first n-1 pages.
 * --username-prefix || Adds a prefix to usernames. Due to this bug it may be necessary to specify  when importing files.
 * -|}
 * --skip-to || Start from the given page number, by skipping first n-1 pages.
 * --username-prefix || Adds a prefix to usernames. Due to this bug it may be necessary to specify  when importing files.
 * -|}
 * --username-prefix || Adds a prefix to usernames. Due to this bug it may be necessary to specify  when importing files.
 * -|}

Troubleshooting
If errors occur when importing files, it may be necessary to use the  option.