Thanks for the help regarding my previous question about transferring a wiki to another machine. Looking at it, we really only need to transfer quite a small subset of pages to another wiki (for private editing, before putting them back on the main wiki) so the effort of doing a full transfer might not be worthwhile. (In particular, we don't have unrestricted access to the machine being transferred to, so some of the steps involved in doing a full transfer might be difficult or impossible). We can do the text as we work just by copying and pasting, the real question is how to transfer the images.
From looking at the images directory on our site, it appears that images are maintained in a directory structure that approximates a b-tree of some sort, presumably to mitigate possible problems with extremely large numbers of images. We haven't reached that point yet, so is there any reason not to simply copy the directory, move all images to the top-level in the copy, move the copy over the the new server, and then use something like importImages.php to do the work?
Thanks, Ken
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ken McDonald wrote:
From looking at the images directory on our site, it appears that images are maintained in a directory structure that approximates a b-tree of some sort, presumably to mitigate possible problems with extremely large numbers of images. We haven't reached that point yet, so is there any reason not to simply copy the directory, move all images to the top-level in the copy, move the copy over the the new server, and then use something like importImages.php to do the work?
Ought to work, sure.
- -- brion vibber (brion @ pobox.com / brion @ wikimedia.org)
Hello Ken!
I successfully used this extension ... http://meta.wikimedia.org/wiki/SpecialUploadLocal ... to upload nearly 1000 images to my new mw-installation.
Good Luck, regards, Jan
Ken McDonald schrieb:
Thanks for the help regarding my previous question about transferring a wiki to another machine. Looking at it, we really only need to transfer quite a small subset of pages to another wiki (for private editing, before putting them back on the main wiki) so the effort of doing a full transfer might not be worthwhile. (In particular, we don't have unrestricted access to the machine being transferred to, so some of the steps involved in doing a full transfer might be difficult or impossible). We can do the text as we work just by copying and pasting, the real question is how to transfer the images.
From looking at the images directory on our site, it appears that images are maintained in a directory structure that approximates a b-tree of some sort, presumably to mitigate possible problems with extremely large numbers of images. We haven't reached that point yet, so is there any reason not to simply copy the directory, move all images to the top-level in the copy, move the copy over the the new server, and then use something like importImages.php to do the work?
Thanks, Ken
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
On 09/01/07, Jan 2036@gmx.de wrote:
I successfully used this extension ... http://meta.wikimedia.org/wiki/SpecialUploadLocal ... to upload nearly 1000 images to my new mw-installation.
I'd have used SCP/SFTP/whatever, and then the maintenance/importImages.php maintenance script.
Rob Church
Hi Rob,
This is what I did to recently import pictures. 1. download images folder from YourWikiSite 2. Remove unwanted folders, such as temp, archive and thumb (these will be recreated) 3. Flatten directory -I know that there is some way to do this with tar, or recursive copy, but I gave up and downloaded the freeware xxcopy (www.xxcopy.com) -xxcopy "C:\ImageFolder" "C:\ImageFolderFlat" /SG -Make sure to use /SG the one normally suggested renames augments the filenames. 4. Check for duplicates with YourNewWikiSite 5. Use importImages.php -php importImages.php --user=Username --comment="comments go here" ../NewImagesFolderName png -Do this for each filetype, e.g. jpg, gif, etc. --If you have problems with importImages.php, make sure you are using php5. 6. Good luck.
There are more details at http://www.appropedia.org/Appropedia:Admin_Tasks#Import_Images_from_WikiGree....
On 1/8/07, Rob Church robchur@gmail.com wrote:
On 09/01/07, Jan 2036@gmx.de wrote:
I successfully used this extension ... http://meta.wikimedia.org/wiki/SpecialUploadLocal ... to upload nearly 1000 images to my new mw-installation.
I'd have used SCP/SFTP/whatever, and then the maintenance/importImages.php maintenance script.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org