Changes

Jump to navigation Jump to search
51 bytes added ,  15:13, 25 September 2020
The obvious approach is to export (with or without revision history), using [[Special:Export]], and then import. As the page count is likely around 500-600 (see below) this should be feasible, though importing though [[Special:Import]] isn't recommended for page counts greater than 100, due to timeout issues. See https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps. Instead, one should use importDump.php [https://www.mediawiki.org/wiki/Manual:ImportDump.php] for larger imports. Note that mwdumper apparently doesn't work for imports in to MW1.31+, presumably because of database structure changes. Another option is to use pagefromfile.py [https://www.mediawiki.org/wiki/Manual:Pywikibot/pagefromfile.py], which is a part of [https://www.mediawiki.org/wiki/Manual:Pywikibot Pywikibot].
Looking at [[Special:AllPages]], it does seem that some of the pages from the old wiki were previously 'imported' to the new wiki. I suspect that this was done page-by-page by the students, copying over the content. Nevertheless, there are pages with the same name but differing content, which is going to cause collisions. See https://meta.wikimedia.org/wiki/Help:Import#Merging_histories_and_other_complications. The script pagefromfile.py has the option of adding the old content to the bottom of the new page (or the top), which would be helpful in many cases. However, a careful approach might be best. I could build lists of pages that have distinct names, common names, and common names but different import criteria, etc. Using [[Special:Import]] should merge the revision histories, which will mean that no data will be lost, as all revisions on Astarte's wiki should be older than the content on Mother's wiki. The documentation for importDump.php[https://www.mediawiki.org/wiki/Manual:ImportDump.php] doesn't make it clear how it processes revisions and potential conflict. [[https://www.mediawiki.org/wiki/Manual:DumpBackup.php Manual:dumpBackup.php]] documents options for starting and ending at specific revisions, implying at least some support for revisions.
Trying to copy data out of the database and then bringing it back in, almost surely isn't an option as this installation using Postgres and the new one uses MySQL. Also the base structure has changed beyond all recognition in the last decade or so. Likewise, I likely can't install any new extensions on the old wiki -- she's just too old.

Navigation menu