User:Dennisroczek/HowTo Import Eskiwiki

This is the explanation of how I have done the export and import of the eskiwiki (the old Turkish OOo wiki) to TRWIKI.

Remarks

 * Eskiwiki is badly broken! (too new MySQL instance)
 * Eskiwiki server access is lost at the moment!
 * Eskiwiki is run on Mediawiki 1.6 (yes, one of the firsst LTS versions, but EOL since beginning of 2009!) completely without api.php

Overview

 * 1) Create a list of pages
 * 2) Export all revisions
 * 3) import to local MW instance (important step, see later!)
 * 4) get analysis which users made an edit with MediaWikiAnalysis
 * 5) by the local MW instance
 * 6) get same list of TRWIKI
 * 7) check if there are wrongly overlapping users and decide what to do
 * 8) check if pages do overlap (naming) and move pages accordingly to another location (or check if page is really needed)
 * 9) run bot (unique username, e.g. User:WikiImporter) with AWB to add license template to the bottom at every page (should also be available under the same name in TRWIKI and TDFWIKI)
 * 10) check namespaces
 * 11) import stuff to TRWIKI

Detailed steps

 * 1) Get a raw list of pages which should be exported (excluding vandalism, spam, etc.)
 * 2) * Be careful: List of pages contains pages with encoded question marks (%3F) which do not get exportet
 * 3) * --> Create another column with ?
 * 4) Paste list to Special:Export at eskiwiki and remove check mark at "only latest revision"
 * 5) save that xml file to local disk
 * 6) import xml file into local MediaWiki instance
 * 7) Grab all images (e.g. by using WikiTeam)
 * 8) File description pages have to be imported before
 * 9) set up PyWikiBot
 * 10) For newer wikis first general at password for the bot at Special:BotPasswords
 * 11) For PyWikiBot, see mw:Manual:Pywikibot/Third-party Wiki Quick Start; my configuration file will be added later
 * 12) see also mw:Manual:Pywikibot/BotPasswords
 * 13) download script for upload and put it in PyWikiBot's base folder mw:meta:Uploadmultiple.py
 * 14) generate a file list (which files to upload), put it also in PyWikiBot's base folder as "uploadlist.txt"; by using powershell-command: Get-ChildItem -Path Z: -File -name > uploadlist.txt
 * 15) python.exe pwb.py .\Uploadmultiple.py -keep -file:uploadlist.txt -nodesc -summary:"initial import of eskiwiki" -noverify -always -family:local

todo

 * has to be done (not done until now)
 * add references to blog posts; more links, etc.
 * add PyWikiBot's configuration file