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 tmp, index, cache, and datastore.
| Folder | Backup | Description |
|---|---|---|
| tmp | No | This folder contains some temporary files. |
| index | No | The folder that 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 that contains the application’s cached files. For example, to preview documents, it is sometimes necessary to transform the original document into another format. The conversion consumes a lot of hardware resources; for this reason, the application stores these converted files to be reused later. The contents 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 that contains all the binary data of the documents. It is mandatory to back up this folder; otherwise, the binary data of the documents could be lost in a server hardware failure. |
| extraction | Yes | This folder contains the text extracted from those documents stored in OpenKM. A backup is not necessary, but it may save time. |
Move the entire repository location
Section titled “Move the entire repository location”- 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
Sample 1
Section titled “Sample 1”Windows
Section titled “Windows”repository.home=C:/okmreporepository.home=/mnt/okmrepoMove repository folders individually
Section titled “Move repository folders individually”Table of properties:
| Folder | Property | Default |
|---|---|---|
| index | spring.jpa.properties.hibernate.search.default.indexBase | ${catalina.home}/repository/index |
| tmp | repository.temp.home | ${repository.home}/tmp |
| cache | repository.cache.home | ${repository.home}/cache |
| datastore | repository.datastore.home | ${repository.home}/datastore |
| extraction | repository.extraction.home | ${repository.home}/extraction |
- Stop the application
- Move the “$TOMCAT_HOME/repository/{folder}” to another location.
- Edit the “$TOMCAT_HOME/openkm.properties” file and add some properties.
- Start the application
Sample
Section titled “Sample”Windows
Section titled “Windows”spring.jpa.properties.hibernate.search.default.indexBase=C:/lucene/indexrepository.datastore.home=D:/okm/${repository.home}/datastorerepository.cache.home=D:/okm/${repository.home}/cacherepository.temp.home=D:/okm/${repository.home}/tmpspring.jpa.properties.hibernate.search.default.indexBase=/mnt/lucene/indexrepository.datastore.home=/mnt/okm/${repository.home}/datastorerepository.cache.home=/mnt/okm/${repository.home}/cacherepository.temp.home=/mnt/okm/${repository.home}/tmpTroubleshooting
Section titled “Troubleshooting”The Windows mapped network disk is not working
Section titled “The Windows mapped network disk is not working”There seem to be restrictions when using network drives (mapped with the “net use” command) and applications running as services. To fix this, it is necessary to create a link between the UNC path and the file system.
MKLINK /D C:\okm-repository \\192.168.1.36\eDocuments\okm-repository