Skip to content
Other versions

Loading…

Change repository home

By default the repository is located at “$TOMCAT_HOME/repository” but you can change it to another location.

Understanding the contents of repository folders

Section titled “Understanding the contents of repository folders”

In “$TOMCAT_HOME/repository” there are four folders: tmpindex, cache and datastore.

Folder Backup Description
tmp No This folder contains some temporary files to be shared between several clustered OpenKM instances.
index No The folder which contains the Lucene search engine indexes. The content of that folder can be rebuilt.
Although it is not mandatory to back up this folder, we recommend doing so.
cache No The folder which contains the application’s cached files. For example, for previewing documents, it is sometimes necessary to transform the original document to another format. The conversion consumes a lot of hardware resources; for this reason the application stores these converted files to be reused later. The content of that folder can be cleared without major problems.
Although it is not mandatory to back up this folder, we recommend doing so.
datastore Yes The folder which contains all binary data for the documents. 
It is mandatory to back up this folder; otherwise the binary data of the documents could be lost if server hardware fails.
extraction Yes This folder contains the text extracted from the documents stored in OpenKM. A backup is not really necessary but may be a time saver.
ocr_templates Yes This folder contains the binary data of the OCR templates.
  • Stop the application
  • Move the “$TOMCAT_HOME/repository” to another location.
  • Edit the “$TOMCAT_HOME/openkm.properties” file and add the property “repository.home”.
  • Start the application
repository.home=C:/okmrepo
repository.home=/mnt/okmrepo

Table of properties:

Folder Property Default
index spring.jpa.properties.hibernate.search.backend.directory.root ${catalina.home}/repository/index
tmp repository.temp.home ${repository.home}/tmp
cache repository.cache.home ${repository.home}/${tenant.id}/cache
datastore repository.datastore.home ${repository.home}/${tenant.id}/datastore
extraction repository.extraction.home ${repository.home}/${tenant.id}/extraction
ocr template repository.ocr.template.home ${repository.home}/${tenant.id}/ocr_template
  • Stop the application
  • Move the “$TOMCAT_HOME/repository/{folder}” to another location.
  • Edit the “$TOMCAT_HOME/openkm.properties” file and add the appropriate property.
  • Start the application
spring.jpa.properties.hibernate.search.backend.directory.root=C:/lucene/index
repository.datastore.home=D:/okm/${repository.home}/datastore
repository.cache.home=D:/okm/${repository.home}/cacherepository.temp.home=D:/okm/${repository.home}/tmp
repository.ocr.template.home=D:/okm/${repository.home}/cacherepository.temp.home=D:/okm/${repository.home}/ocr_template
spring.jpa.properties.hibernate.search.backend.directory.root=/mnt/lucene/index
repository.datastore.home=/mnt/okm/${repository.home}/datastore
repository.cache.home=/mnt/okm/${repository.home}/cacherepository.temp.home=/mnt/okm/${repository.home}/tmp
repository.ocr.template.home=/mnt/okm/${repository.home}/cacherepository.temp.home=/mnt/okm/${repository.home}/ocr_template

Windows mapped network disk is not working

Section titled “Windows mapped network disk is not working”

 There seem to be restrictions when using a network drive (mapped with the “net use” command) and running the application as a service. To solve this it is necessary to create a link between the UNC path and the file system.

Terminal window
MKLINK /D C:\okm-repository \\192.168.1.36\eDocuments\okm-repository