• Automatic Daily Export

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
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.
 #1454  by booke56
 
Hi,

We want to an export of the repository daily. Is there a batch command we can perform the export instead of going through the UI?

Also, is there a way to backup users and roles?

Thanks.

William
 #1461  by pavila
 
For daily export you have two options: program a client application using OpenKM webservices or create an servlet an use the OpenKM Java API directly. Anyway you will export the last version of each document but no metadata. If you want to make a backup you have to stop JBoss, make a backup of $JBOSS_HOME/repository folder and start JBoss again.

By default, user and roles are stored in a embeded database. The files are stored at $JBOSS_HOME/server/default/data/hypersonic. Also is recommended to stop JBoss before the backup.
 #16891  by stiebs
 
Has anyone implemented either of these? And more importantly, if so are they willing to share? I've got OpenKM running on Debian, and as part of my regular backup I would like to automatically dump all my documents out to a flat directory structure and run to removable hard drive. I care more about backing up the latest version of all files in a flat format than keeping all the version history and metadata.

(Actually, I would like to do both - my backup script ideally will export the full taxonomy in a flat structure, then shutdown jboss, then backup both, then restart jboss)
 #16900  by jllort
 
Other option is make a crontab task with this logic:
1- Query of all new documents ( simply query from yesterda to today night )
2- Each result should be stored to some local folder:
- With result you get Document.java object which contains path and name ( here you can take where to store in your local server )
- With this class can show how download bytes content simply redirect de IS to some local FOS http://openkm.svn.sourceforge.net/viewv ... iew=markup

Here it's explained how create a new crontab task http://wiki.openkm.com/index.php/Crontab
And here how install developer IDE http://wiki.openkm.com/index.php/Developer_Guide

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.