Copying or merging wiki user accounts

From Biowikifarm Metawiki
Revision as of 11:25, 2 January 2015 by Alvaro Ortiz-Troncoso (Talk | contribs) (Overview)

Jump to: navigation, search

There are several use cases where user accounts need to be copied from one wiki to another, e.g.

Merging two wikifarms
Wikifarms store user accounts in the metawiki database, which is shared by all wikis in the wikifarm. If the wikis of a wikifarm (or a selection thereof) need to be moved to another wikifarm, then a merge of the user accounts becomes necessary.
Moving a wikifarm to anothers server
Strictly speaking, moving a wikifarm to another server can be done by copying the whole databse. In practice however, the new wikifarm will often be a separate branch of the original wiki, so a merge becomes necessary.

Overview

The process consists of a sequence of activities, described in more detail below:

  1. Backup the user database
  2. Resolving conflicts
  3. Merging the user accounts
  4. Anonymizing user accounts which should be discarded
  5. Cleaning up
  • The source database server shall be called the "FROM server"
  • The sink database server shall be called the "TO server"

Backup

Make a backup of the tables in the TO server that will be modified:

  • user table in metawiki database
  • user tables user_groups, user_newtalk, user_openid, user_properties, recentchanges, revision, watchlist in all individual wiki databases.