Hi Aaron! My answers are below.
On Thu, Jan 17, 2013 at 3:07 AM, Aaron Schulz <aschulz4587(a)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-tp4992140p4…
Sent from the Wikipedia Developers mailing list archive at
Nabble.com.
_______________________________________________
Wikitech-l mailing list
Wikitech-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l