Difference between revisions of "MediaWiki/Presentation"

From Freephile Wiki
Jump to navigation Jump to search
m (fixes link)
(adds info about bulk image loading and also text (XML) automated backups.)
Line 168: Line 168:
 
</source>
 
</source>
  
One good practice is to have some sort of text version or other backup of your wiki in case the machine, webserver, or database that the system depends on is down.  One tool that can come in handy is [[Special:Wiki2XML]] <ref>http://tools.wikimedia.de/~magnus/wiki2xml/README, see also [[Format_conversion]]</ref>
+
One good practice is to have some sort of text version or other backup of your wiki in case the machine, webserver, or database that the system depends on is down.  As an administrator, you can use the dumpBackup.php script found in the <code>maintenance</code> directory of you MediaWiki installation.  Something like the following in a system [[cron]] would be good:
 +
<source lang="bash">
 +
/usr/bin/php /var/www/phase3/maintenance/dumpBackup.php --current --output=file:/var/backups/example.com/`date +%F`-wiki.text.export.txt
 +
</source>
  
You can mass import images
+
As a user, one tool that can come in handy is [[Special:Wiki2XML]] <ref>http://tools.wikimedia.de/~magnus/wiki2xml/README, see also [[Format_conversion]]</ref>
 +
 
 +
Another useful tool to the Administrator is the bulk image importer.  To import all the screenshots that I used at the start of this presentation, I did the following:
 +
<source lang="bash">
 +
php importImages.php --user=Freephile --comment='Set of screenshots of sites using MediaWiki [[Category:MediaWiki Sites]]' ~/Desktop/mediawiki/snaps/
 +
</source>
 +
Note how using a Category tag in the comment will automatically place the images in the Category specified.
  
 
== Developing it ==
 
== Developing it ==

Revision as of 23:28, 25 January 2009