• Migrating from OpenKM 2.0 to 4.0

  • Problems with installing OpenKM? No problemo, the solution is closer than you think.
Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #3825  by davegball
 
Hi

I'm migrating repository data and user permissions from an OpenKM 2.0 install to an OpenKM 4.0 install on a different physical server. Is there an easy way to auto export the configuration data and documents or I need to recreate everything on the new machine? Maybe I need to manually copy the users and roles config files across. Not sure.

Thanks for any help.
 #3831  by jllort
 
We're finishing documentation, in next week it'll be available.

You must migrate from version 2.0 to version 3.0

And after it, from version 3.0 to 4.0 I advance here - new wiki - what must be done in this case:

Download the migration utility called OKMUtils-4.0.jar. This is a self-contained JAR with all the required dependencies. Can be executed from command line as:
Code: Select all
$ java -Xmx512m -jar OKMUtils-4.0.jar
And will show the parameters needed:

* RepositoryOldConfig: Path to the old repository configuration file. This is the $OLD_JBOSS_HOME/repository.xml file by default. Perhaps is different if you changes the repository.config property in OpenKM.cfg file.

* RepositoryOldHome: Path to the old repository directory. This is the $OLD_JBOSS_HOME/repository directory by default. Perhaps is different if you changes the repository.home property in OpenKM.cfg file.

* RepositoryNewConfig: Path to the new repository configuration. If you downloaded the JBoss + OpenKM bundle, there is a default $NEW_JBOSS_HOME/repository.xml file.

* RepositoryNewHome: Path to the new repository directory. This is the $NEW_JBOSS_HOME/repository directory by default. This folder actually does not exists and will be created in the migration process.

These are the required steps to make a migration.

* Download the new OpenKM version and uncompress it.

* Stop the actual JBoss instance and make a backup.

* Modify the $NEW_JBOSS_HOME/server/default/conf/login-config.xml according to the old settings. If you didn't change it in the actual installation, this step is not required.

* Modify the $NEW_JBOSS_HOME/server/default/deploy/openkm-ds.xml according to the old settings. If you didn't change it in the actual installation, this step is not required.

* Modify the $NEW_JBOSS_HOME/server/default/deploy/mail-service.xml according to the old settings.

* Modify the $NEW_JBOSS_HOME/OpenKM.cfg according to the old settings. Remember to check the changelog because some properties can be deprecated.

* Perhaps you need to copy the JDBC library from $OLD_JBOSS_HOME/server/default/lib to $NEW_JBOSS_HOME/server/default/lib. You can skip this step for a default OpenKM installation.

* Run the migration utility.

* Start the new JBoss.
 #3953  by davegball
 
Thanks for your reply.

Once I migrate from 2.0 to 3.0 do I use the same migration utility to go from 3.0 to 4.0?

Also what exactly is the migrate utility processing? Just the format of the repository.xml file or is it also moving the documentation across?

Does the utility also migrate the users/permission or I need to recreate (or copy the flat files across).

Regards
 #3954  by jllort
 
Take a look at wiki.openkm.com

You might recreate users and passwords, becuase there's so much changes between 2.0 to 4.0 ( your must create some script from initial database to final database ). Take a look how to explore database ( there's something in developer guide, in wiki too ).

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.