Page 1 of 1
Automatic Daily Export
PostPosted:Thu Nov 27, 2008 4:03 am
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
Re:Automatic Daily Export
PostPosted:Thu Nov 27, 2008 12:58 pm
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.
Re: Automatic Daily Export
PostPosted:Sat Jun 16, 2012 6:52 am
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)
Re: Automatic Daily Export
PostPosted:Sat Jun 16, 2012 9:35 am
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