Re: [Wikitech-l] some issues with missing Files
Hi Aaron! My answers are below. On Thu, Jan 17, 2013 at 3:07 AM, Aaron Schulz aschulz4...@gmail.com wrote: Do you want the files or not? The first post sounds like you don't, in that case you'd need to truncate the image/oldimage/archive tables. This will remove all registration of the files. Clearing memcached (or whatever cache you use) might be needed to. Can I just use this SQL? TRUNCATE TABLE image; TRUNCATE TABLE oldimage; TRUNCATE TABLE archive; Is it safe to do, wouldn't it be a problem with referential integrity and broken references? You can copy the files over with copyFileBackend.php from the old backend to the new one. The src backend would be the default upload backend name (just dump $wgFileBackends in eval.php to find it) unless you configured it otherwise and the dst backend would have to be added to $wgFileBackends and point to the new server somehow (such as via NFS or removable media). Thanks, didn't know about that! -- View this message in context: http://wikimedia.7.n6.nabble.com/some-issues-with-missing-Files-tp4992140p4993969.html Sent from the Wikipedia Developers mailing list archive at Nabble.com. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] some issues with missing Files
Hi again! Put it another way: what is the right way of exporting/importing a bunch of files from one MediaWiki to another? Cheers, Yury Katkov, WikiVote On Mon, Dec 24, 2012 at 6:38 PM, Yury Katkov katkov.ju...@gmail.com wrote: Hi everyone! I want to move my wiki from one server (A) to another (B). On server A I have a lot of files. I don't need them on server B, but I need all my wikipages. What I've done is: I removed the 'images' directory and ran: php maintainance/rebuildall.php Unfortunately now wiki still thinks that all the files are at the places where they need to be. This is clearly not true since the images directory is empty. Questions: 1) how to property delete the files permanently? 2) is there any script to make the files and their description in MediaWiki DB consistent? Cheers, - Yury Katkov, WikiVote ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] some issues with missing Files
It seems that I've found the way: Export(in the FROM wiki directory): php maintainance/dumpBackup.php --current --pagelist=tmp --uploads ~/dmp Import(in the TO wiki directory) : php maintainance/importDump.php ~/dmp --uploads Here dmp is the list of files. On Wed, Jan 16, 2013 at 5:34 PM, Yury Katkov katkov.ju...@gmail.com wrote: Hi again! Put it another way: what is the right way of exporting/importing a bunch of files from one MediaWiki to another? Cheers, Yury Katkov, WikiVote On Mon, Dec 24, 2012 at 6:38 PM, Yury Katkov katkov.ju...@gmail.com wrote: Hi everyone! I want to move my wiki from one server (A) to another (B). On server A I have a lot of files. I don't need them on server B, but I need all my wikipages. What I've done is: I removed the 'images' directory and ran: php maintainance/rebuildall.php Unfortunately now wiki still thinks that all the files are at the places where they need to be. This is clearly not true since the images directory is empty. Questions: 1) how to property delete the files permanently? 2) is there any script to make the files and their description in MediaWiki DB consistent? Cheers, - Yury Katkov, WikiVote ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Re: [Wikitech-l] some issues with missing Files
Do you want the files or not? The first post sounds like you don't, in that case you'd need to truncate the image/oldimage/archive tables. This will remove all registration of the files. Clearing memcached (or whatever cache you use) might be needed to. You can copy the files over with copyFileBackend.php from the old backend to the new one. The src backend would be the default upload backend name (just dump $wgFileBackends in eval.php to find it) unless you configured it otherwise and the dst backend would have to be added to $wgFileBackends and point to the new server somehow (such as via NFS or removable media). -- View this message in context: http://wikimedia.7.n6.nabble.com/some-issues-with-missing-Files-tp4992140p4993969.html Sent from the Wikipedia Developers mailing list archive at Nabble.com. ___ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l