Johns Hopkins Linux Users GroupMain Page | About | Help | FAQ | Special pages | Log in


Printable version | Disclaimers | Privacy policy

Wiki Backup and Restore Procedures

From Johns Hopkins Linux Users Group

Contents

Exporting and importing MediaWiki XML dumps

Reference Meta.MediaWiki.org Data Dumps

Prerequisites:

 sudo apt-get install php5-cli
cd /var/www/wiki/maintenance
sudo php dumpBackup.php --current --report=1 > /tmp/mywikidump.xml

cd /var/www/wiki/maintenance
sudo php importDump.php /tmp/mywikidump.xml

Restoring Imported Pages Already Existing in the New Wiki

This procedure is supposed to backup all of the pages. However, importing does not automatically make the pages from the backup "current" if these pages already exist in the new wiki. For example, the following pages are not made current (Media Wiki 1.11.0); and there may be other pages as well.

Main Page
Privacy policy
About
Disclaimers

Restoring Images

Copy the old images folder contents to the new /var/www/wiki/images folder

 php maintenance/rebuildImages.php --missing

About the Author - Arnold

The author is still a Linux novice and needs to put this article here so he can rebuild his own wiki.

Retrieved from "http://www.jhlug.org/wiki/index.php/Wiki_Backup_and_Restore_Procedures"

This page has been accessed 185 times. This page was last modified on 21 August 2009, at 02:17.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More…