Wiki Backup and Restore Procedures
From GridTrak
Contents |
Exporting and importing MediaWiki XML dumps
Reference Meta.MediaWiki.org Data Dumps
Prerequisites:
- Install the PHP scripting client
sudo apt-get install php5-cli
- Copy Move the AdminSettings.sample file to AdminSettings.php
- Assign values to the $wgDBadminuser and $wgDBadminpassword settings in the AdminSettings.php file in the wiki root. These values are required for running wiki/maintenance scripts.
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.