Help:Backing up your wiki


You may wish to save a copy of your wiki's articles as a backup or to copy them to another wiki. You can do this by exporting your pages in XML format. The quickest way to do this is by using the special pages Special:Allpages and Special:Export.

  1. In the toolbox in the left-hand sidebar, click "Special pages."
  2. In the list of special pages, click "All pages."
  3. From the "Namespace" drop-down menu, select the namespace you wish to export. "(Main)" is selected by default.
  4. Highlight and copy the resulting list of article names.
  5. Edit the result such that each article's name is on its own line. For example, using Microsoft Word, globally replace "tab" characters with "paragraph" characters.
    • Make sure there are no blank lines, especially at the end of the list.
    • If you selected any namespace other than (Main), each article name must be preceded with its namespace name and a colon. For example, the article RobKohr in the User: namespace would have to be listed as User:RobKohr. Do this for every article name in the list.
    • To create a complete copy, you should export every article in every namespace that you've modified from the default installation, including associated Talk: namespaces (Category Talk:, User Talk:, etc).
  6. Highlight and copy the new, reorganized article list.
  7. Navigate back to the list of Special pages
  8. In the list of special pages, click "Export pages."
  9. Paste the reorganized article list into the Export text box.
  10. Check or uncheck the checkbox "Include only the current revision, not the full history," as you prefer.
  11. Click "Submit Query."

The result is an XML file containing the latest version of all your pages. The file can be saved from your browser and later imported into this or another MediaWiki wiki using Special:Import. (For example, using Internet Explorer, go to the File menu and select "Save As..." to save the XML file as a .xml document.)

Personal tools