• Move repository, users and groups to new server

  • 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.
 #22496  by anyonebutnoone
 
Hello together,

a couple days ago i came across this KM and I love it.

For testing I installed it on a test system and testing went so well that I have a great deal of files and users added all ready.

Now I have setup a productive system with extra file storage and such fancy things and i have separated the repository from the install.

Now i would like to bring the repository and all group an user settings from my test system to the productive system.

I learned that the export does only contain files but no users or groups, is that correct?

If correct, is there a way to move a installation from one system to another considering the new repository being in a different location.

Test system:
Debian
install folder: /home/adm/openkm-6.2.3-community
repository: withing the install folder, no changes

Productive system:
Debian
install folder: /data/openkm-6.2.3-community
repository: /media/Datapool/repository
Changes in openKM: language, openoffice settings, pdf2swf settings ...

So all i want is the users, groups and files from the test system to move to the productive system.

Is there a way?

Thanks in advance
 #22719  by anyonebutnoone
 
Thank you for the link.

But I am having no luck with that. Also I read somewhere it is only possible to change the location of the repository before the first start of the server.

Can you confirm that?

If that is not true then could someone help me with this:

I have a working OpenKM installation and I want to move the repository to a new server with a new installation (same version).

I tried to move the repository folder from the working server to the new server and then point to it with the link you posted but that dows not work.

Is there a step by step how to for this?

Thank you in advance
 #22755  by jllort
 
there's no problem with categories, simply you should create before. About mails there's other problem I think 5.1.11 still has not mail export utility that is only present until version 6.2.X
 #22766  by anyonebutnoone
 
Of course I had categories created before, non of them "arrived" in the new installation.

How ever, this thread my be set to [SOLVED] as i have found a way around this by the following steps.

Here is how i moved my openKM installation from one server to another:

Situation: openKM 6.2.3 installed on a Debian box at /foo/bar/openkm

Problem: installation must be moved to a different Debian box at /bar/openkm and must be run by a different user

This is the way i did it:

install the same openkm Version on the new Debian box to /bar/openkm
copy /bar/openkm/tomcat/bin/setenv.sh to /bar
copy /foo/bar/openkm from old System to /bar/openkm on the new system
replace /bar/openkm/tomcat/bin/setenv.sh with /bar/setenv.sh
change grp and own recursive to the new user which will run openkm
 #22775  by jllort
 
Is other way move files storage to new storage. Has you exported with metadata ? otherside that is the reason why when importing the relation between categories and documents were not able to be restored.
 #28037  by yoan.penchev
 
I tested it and it's working fine. My openKM installation is on Debian 7 and I'm using it with mysql database. So I used to export files on old server (Administration --> export with metadata and history), then stop catalina process, dump database into sql file - here you can learn how to do it - http://www.thegeekstuff.com/2008/09/bac ... mysqldump/. After this I installed on my new server openKM, openjdk-6-jdk, mysql and create database as it's explained in the official "Installation guide". I replaced the 2 conf. files from my old server - openKM.xml and server.xml where are mail and database configurations. You MUST change your openKM.cfg before start catalina.sh for the first time to:
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.hbm2ddl=create
Then you have to start catalina.sh so database will be created. You have to log through web and import files (Administration --> import). Then if you stop catalina.sh, restore database from the sql file that was exported from old server and then start catalina.sh - all users, lists, files, permissions, etc will be like before. :)

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.