[MediaWiki-l] merge independent wiki with wikifarm?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[MediaWiki-l] merge independent wiki with wikifarm?

kevin zhang
If I had an separate wiki and a wikifarm (using shared tables for user and
actor) and wanted to merge the separate wiki into the wikifarm, what would
be the safest way to handle user account migration without any
conflicts/data corruption? Is it even safe to renumber user ids?

Assume user ids for the separate wiki would conflict with existing wikifarm
user ids.

thinking at a minimum the following is required:
1. on wikifarm: halt account creations, set read only, and get max user id
2. on separate wiki: set wiki to read only, renumber all user ids (user,
actor tables) starting at one past the current wikifarm max user id to
avoid conflicts, run rebuildall.php & rebuildrecentchanges.php, create a
database dump using mysqldump, and export a backup of localsettings.php
3. on wikifarm, add a new wiki (import localsettings.php) and import
database dump of separate wiki then run update.php as required

Thanks,

Kevin
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: [MediaWiki-l] merge independent wiki with wikifarm?

Daren Welsh
I think Meza [0] has some wiki merging scripts, though I have never used
them and can't provide guidance. Maybe you can find your answers there.

[0] https://github.com/enterprisemediawiki/meza

On Wed, Jan 22, 2020, 01:51 Kevin Zhang <[hidden email]> wrote:

> If I had an separate wiki and a wikifarm (using shared tables for user and
> actor) and wanted to merge the separate wiki into the wikifarm, what would
> be the safest way to handle user account migration without any
> conflicts/data corruption? Is it even safe to renumber user ids?
>
> Assume user ids for the separate wiki would conflict with existing wikifarm
> user ids.
>
> thinking at a minimum the following is required:
> 1. on wikifarm: halt account creations, set read only, and get max user id
> 2. on separate wiki: set wiki to read only, renumber all user ids (user,
> actor tables) starting at one past the current wikifarm max user id to
> avoid conflicts, run rebuildall.php & rebuildrecentchanges.php, create a
> database dump using mysqldump, and export a backup of localsettings.php
> 3. on wikifarm, add a new wiki (import localsettings.php) and import
> database dump of separate wiki then run update.php as required
>
> Thanks,
>
> Kevin
> _______________________________________________
> MediaWiki-l mailing list
> To unsubscribe, go to:
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
To unsubscribe, go to:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l