Copying or merging wiki user accounts
From Biowikifarm Metawiki
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:
- Backup the user database
- Resolving conflicts
- Merging the user accounts
- Anonymizing user accounts which should be discarded
- 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.