bd808 added a comment. |
On a local test server:
$ cd $MY_MWVAGRANT_CHECKOUT $ ls -l Wikitech-20180111155417.xml -rw-r--r--@ 1 bd808 staff 6.8K Jan 11 08:54 Wikitech-20180111155417.xml $ vagrant import-dump Wikitech-20180111155417.xml Done! You might want to run rebuildrecentchanges.php to regenerate RecentChanges, and initSiteStats.php to update page and revision counts Rebuilding $wgRCMaxAge=7776000 seconds (90 days) Clearing recentchanges table for time range... Loading from page and revision tables... Inserting from page and revision tables... Updating links and size differences... Loading from user, page, and logging tables... Flagging bot account edits... Flagging auto-patrolled edits... Removing duplicate revision and logging entries... Deleting feed timestamps. Done.
One thing I just realized is that vagrant import-dump does not currently handle additional arguments like --wiki=wikidatawiki which would be needed to import the dump to a wiki other than the default (dbname "wiki"). You may be better off using mwscript and importDump.php manually inside the VM with something like:
$ vagrant ssh $ cd /vagrant $ mwscript importDump.php --wiki=wikidatawiki --uploads $PATH_TO_DUMP
TASK DETAIL
EMAIL PREFERENCES
To: bd808
Cc: bd808, Aklapper, Hjfocs, Lahi, Gq86, GoranSMilovanovic, Kiailandi, QZanden, dachary, LawExplorer, Luke081515, Wikidata-bugs, aude, Ricordisamoa, Sjoerddebruin, Tpt, Mbch331, jeremyb
Cc: bd808, Aklapper, Hjfocs, Lahi, Gq86, GoranSMilovanovic, Kiailandi, QZanden, dachary, LawExplorer, Luke081515, Wikidata-bugs, aude, Ricordisamoa, Sjoerddebruin, Tpt, Mbch331, jeremyb
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs