Changes

Jump to navigation Jump to search
1,852 bytes added ,  13:08, 23 September 2020
==The Options==
I likely can't install any new extensions on the old wiki -- she's just too old. I could The obvious approach is to Export (with or without revision history) 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 issue. 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. 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.
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.  Pdfs and other files seem to be in /var/www/html/pdfs or in /var/www/html/repository. I could copy those directories over; the links use domain aliases, which I could set up in Apache.I could also try to move the images manually, or I could use ImportImages.php [https://www.mediawiki.org/wiki/Manual:ImportImages.php], which seems likely the best option.
===Old Statistics===

Navigation menu