Difference between revisions of "Backing up the wiki"

Jump to navigation Jump to search
Line 8: Line 8:
 
Maybe out of date now. Assumes economical shared Linux hosting, with jailed shell access. See [https://www.mediawiki.org/wiki/MediaWiki MediaWiki.org] for a more detailed explanation.
 
Maybe out of date now. Assumes economical shared Linux hosting, with jailed shell access. See [https://www.mediawiki.org/wiki/MediaWiki MediaWiki.org] for a more detailed explanation.
 
* Use cPanel > MySQL to create db e.g. wikidb, user e.g. root and password e.g. Whatever123  
 
* Use cPanel > MySQL to create db e.g. wikidb, user e.g. root and password e.g. Whatever123  
 +
* Grant all privileges to the newly created user on the new db
 
* SSH into your server  
 
* SSH into your server  
 
* <code>cd public_html</code>
 
* <code>cd public_html</code>

Revision as of 18:24, 23 August 2016

Backing up the wiki without server shell access, requires Python v2 (v3 doesn't yet work).

Run the the WikiTeam Python script dumpgenerator.py from the command-line to get an XML (with edit histories) dump and a dump of all images plus their descriptions. Full instructions are at the WikiTeam tutorial.

python dumpgenerator.py --api=http://www.sdiy.info/w/api.php --xml --images

Restoring from backup με λίγα λόγια

Maybe out of date now. Assumes economical shared Linux hosting, with jailed shell access. See MediaWiki.org for a more detailed explanation.

  • Use cPanel > MySQL to create db e.g. wikidb, user e.g. root and password e.g. Whatever123
  • Grant all privileges to the newly created user on the new db
  • SSH into your server
  • cd public_html
  • wget http://download.wikimedia.org/mediawiki/x.xx/mediawiki-x.xx.tar.gz (replacing x.xx as apropriate for current version).
  • tar -xpzf mediawiki-x.xx.tar.gz
  • rm mediawiki-x.xx.tar.gz
  • mv mediawiki-x.xx/ w
  • Open your wiki with a web browser e.g. http://www.sdiy.info/w/
  • Follow theset up the wikilink. Complete the steps that follow. Leave most options at defaults.

To be continued ...