Knowledgebase: Servers
How do I change user datastore type and migrate existing accounts into it?
Posted by Daniel Demecillo II on 08 November 2011 09:21 AM

When switching between user datastore types, user accounts are not automatically migrated during the switch. Starting from version 7.1 you can use the js-copyusers command line utility to manually migrate user accounts from one datastore type to another. It involves creating a dummy domain that uses a datastore type you want to migrate to and using js-copyusers to copy the users from the original domain to this dummy domain and then transferring the dummy domain datastore to the original domain. The steps to accomplish this are described below: 

1) Open up Server Manager.

2) Create another (dummy) domain. Choose a datastore type that is the type you want to migrate to.

3) On the command line, go to JSCAPE install directory and execute the following:

For *nix based servers:

./js-copyusers -d dummy_domain -s original_domain

For Windows based servers:

js-copyusers -d dummy_domain -s original_domain

After the command is finished you will have migrated your user accounts into the dummy domain.

4) Using Server Manager delete the dummy domain. This process will not remove the datastore holding its user accounts.

5) The following steps will transfer the dummy domain datastore for use by the original domain.

5.1) If switching to "File Datastore" then do the following:

5.1.1) Exit Server Manager and stop the JSCAPE server.

5.1.2) On the command line, go to JSCAPE install directory and execute the following command:

For *nix based servers:

cp users/dummy_domain/account.dat users/original_domain/

For Windows based servers:

copy users\dummy_domain\account.dat users\original_domain\

5.1.3) Start the JSCAPE server

5.1.4) Open Server Manager and go to "Datastore" module then set "Service type" to "File Datastore" and click on the "Apply" button. Go to "Users" and check that all your user accounts are there. You are done.

5.2) If switching to "File Record Datastore" then do the following:

5.2.1) Exit Server Manager and stop the JSCAPE server.

5.2.2) On the command line, go to JSCAPE install directory and execute the following command:

For *nix based servers:

cp users/dummy_domain/*.usr users/original_domain/

For Windows based servers:

copy users\dummy_domain\*.usr users\original_domain\

5.2.3) Start the JSCAPE server

5.2.4) Open Server Manager and go to "Datastore" module then set "Service type" to "File Record Datastore" and click on the "Apply" button. Go to "Users" and check that all your user accounts are there. You are done.

5.3) If switching to "DB Datastore" then do the following:

5.3.1) Open Server Manager and go to "Datastore" module then set "Service type" to "DB Datastore", fill-up the fields with the same parameter values you used on the dummy domain and click on the "Apply" button. Go to "Users" and check that all your user accounts are there. You are done.

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
Help Desk Software by Kayako fusion