We have an xml-dump and the folder structure of files (in their md5-derived, 2-folder levels) as backup and want to restore on a new server, current mediawiki version (1.18 alpha).
We did ./maintenance/importDump.php ./maintenance/rebuildAll.php
All went well, but mediawiki does not know about the files yet. I thought running ./maintenance/rebuildImages.php is the right thing to do, but it is undocumented and does not achieve anything.
output is: Processing image... Finished image... 0 of 0 rows updated Processing oldimage... Finished oldimage... 0 of 0 rows updated
Any hints how to restore the image to the wiki?
thanks!
Gregor
On Fri, Feb 18, 2011 at 11:54 PM, Gregor Hagedorn g.m.hagedorn@gmail.com wrote:
All went well, but mediawiki does not know about the files yet. I thought running ./maintenance/rebuildImages.php is the right thing to do, but it is undocumented and does not achieve anything.
output is: Processing image... Finished image... 0 of 0 rows updated Processing oldimage... Finished oldimage... 0 of 0 rows updated
Any hints how to restore the image to the wiki?
Sure. Easy. :)
Step -1: The images should *not* be inside your wiki's images/ dir, put them somewhere else.
Step 0: *REMOVE* thumbs/ and archive/ (you might want a copy of that) and everything that's not part of the 0/ through f/ dirs.
Step 1: Flatten the directory structure. Yes, seriously. Put all images in one flat dir. find with mv does the trick nicely.
Step 2: Run importImages.php and point it to the flattened directory your images are in.
Step 3: Put archive/ back in place, if you want it.
Tada!
Like I said: easy. ;)
mediawiki-l@lists.wikimedia.org