[OSM-talk] Offline Dump of the Wiki

Kate maps2wiki at gmail.com
Tue Nov 17 11:10:25 GMT 2009


On Tue, Nov 17, 2009 at 5:28 AM, Tom Hughes <tom at compton.nu> wrote:
>
> Well who did the board ask to undertake this task? They can agree all
> they like, but unless they ask somebody to do it nothing much is going
> to happen.
>
> Probably the best way to do it will be to use the mediawiki dump tools
> but Grant probably knows more about that than me. We'll need to check
> that they don't leak any sensitive information, but I assume they won't
> as wikipedia publish dumps made that way. The raw database definitely
> does have sensitive information so can't be made available as is.
>
> I can't for the life of me think what sort of research would require a
> copy of the wiki though.
>
> Tom

In the maintenance folder of the mediawiki installation, there is a
dumpBackup.php script:

php maintenance/dumpBackup.php --full >20091117-osmwiki.xml

This produces an xml dump that excludes all the sensitive information
about user accounts, and also excludes logs (e.g. deletion actions).
This is what Wikimedia does to provide database dumps.

The importDump.php script in the maintenance folder can be used to put
the content into another wiki.

I don't think a mirror of the wiki is needed and wouldn't edit on a
copy of the wiki, but suppose a copy would be useful to read and have
if off-line.

-Kate
>
> --
> Tom Hughes (tom at compton.nu)
> http://www.compton.nu/
>
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk
>




More information about the talk mailing list