Home Computing Web stuff How to Backup and Restore a mediawiki

Support the Site!

How to Backup and Restore a mediawiki

Back up the old mediawiki

  1. dump the database
    • mysqldump -p wikidb > sql_backup_file
  2. save the /var/lib/mediawiki1.7/upload/ directory
  3. save /var/lib/mediawiki1.7/LocalSettings.php

restore it on a new wiki

  1. apt-get install mediawiki
  2. if not already done, set a root mysql password
    • $>mysql -p mysql \n
    • $>mysql> update user set password = password('xxx') where user = 'root';
  3. browse to http://localhost/mediawiki
  4. step through configuration, using settings from LocalSettings.php
  5. restore LocalSettings.php
    • you should be able to see a blank wiki now
  6. restore the wikidb table
    • mysql -p wikidb < sql_backup_file
 
Google
Copyright © 2009 joefitz.net. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.