Difference between revisions of "Backing up the wiki"

Jump to navigation Jump to search
Line 5: Line 5:
 
  python dumpgenerator.py --api=http://www.sdiy.info/w/api.php --xml --images
 
  python dumpgenerator.py --api=http://www.sdiy.info/w/api.php --xml --images
  
== Restoring the wiki ==
+
=== Restoring from backup με λίγα λόγια ===
<!-- still to be written -->
+
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.
See [https://www.mediawiki.org/wiki/MediaWiki MediaWiki.org] for details about installing and configuring a MediaWiki wiki.
 
<!-- === First time install kurzgesagt ===
 
Maybe out of date now. Assumes economical shared Linux hosting, with jailed shell access.
 
 
* Use cPanel &gt; MySQL to create db e.g. wikidb, user e.g. root and password e.g. Whatever123  
 
* Use cPanel &gt; MySQL to create db e.g. wikidb, user e.g. root and password e.g. Whatever123  
 
* SSH into your server  
 
* SSH into your server  
Line 17: Line 14:
 
* <code>rm  mediawiki-x.xx.tar.gz</code>
 
* <code>rm  mediawiki-x.xx.tar.gz</code>
 
* <code> mv mediawiki-x.xx/ w</code>
 
* <code> mv mediawiki-x.xx/ w</code>
* <code></code>
+
To be continued ...
* <code></code>
+
<!-- * <code></code>
 
+
<code></code>
=== Style sheets, Javascript, extensions, templates, etc === -->
+
=== .htaccess, Style sheets, Javascript, extensions, templates, etc === -->
  
 
[[Category:Meta]]
 
[[Category:Meta]]

Revision as of 10:44, 22 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
  • 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

To be continued ...