Page 1 of 1

Recommended repository backup procedure missing stuff

PostPosted:Fri Nov 21, 2014 7:40 am
by ukoda
Hi, I have installed OpenKM 6.3.0 using the defaults in to a Docker image. I reviewed the wiki page "Repository backup", http://wiki.openkm.com/index.php/Repository_backup, and from that determined that the location I needed to expose via Docker to save changes is "/usr/local/tomcat/repository".

When I set up some test data, shut down OpenKM, and started it on another machine almost everything was ok except the property groups. A property group I had created was no longer present. I can only assume that property groups are stored somewhere outside "$TOMCAT_HOME/repository"? If so where are they stored? Is there any other paths I need to know about if I wish to be able move from machine to machine without losing information?

Let me know if you need more details about any aspect of my set up.

Thanks in advance for any information you can offer.

Re: Recommended repository backup procedure missing stuff

PostPosted:Sat Nov 22, 2014 1:33 am
by ukoda
I have resolved the problem. I had made a mistake with the volume argument in the script I was using with Docker. It now appears to work well. Sorry if I wasted anyone's time on this.

Re: Recommended repository backup procedure missing stuff

PostPosted:Sun Nov 23, 2014 5:10 pm
by jllort
My suggestion is you take a look here http://wiki.openkm.com/index.php/Backup_scripts and specially here http://wiki.openkm.com/index.php/Backup ... iff-backup
Correct backup execution must contains database dump ( object information etc... ) and binary information what's into repository folder ( here there's the datastore folder what contains all binary files ). With these two things the backup is correct done.

Re: Recommended repository backup procedure missing stuff

PostPosted:Mon Nov 24, 2014 6:53 am
by ukoda
jllort wrote:My suggestion is you take a look here http://wiki.openkm.com/index.php/Backup_scripts and specially here http://wiki.openkm.com/index.php/Backup ... iff-backup
Correct backup execution must contains database dump ( object information etc... ) and binary information what's into repository folder ( here there's the datastore folder what contains all binary files ). With these two things the backup is correct done.
That information has me bit worried. The scripts are running database exports instead of saving files. I guess the good news is I now know there is a database to worry about, but I have no idea where it's files are so I guess I am not ready to go live yet. Does anyone know where database files are stored? I can't see any myd files under /usr/local/tomcat.

The other thing is what is the database used for? I can see the folders and properties when I move the data from server to server so what am I losing if the database is not being moved too?

I was also looking for the PDF files I had uploaded, I assume they are somewhere under /usr/local/tomcat too but with different names or compressed or something as I can't find then there.

BTW, the reason I don't want run database exports is it breaks the ideas behind using Docker where OpenKM is in its own VM that is shutdown, the data moved and restart on another server. My challenge is to ensure I expose all the directories in Docker container that contain variable data used by OpenKM.

Re: Recommended repository backup procedure missing stuff

PostPosted:Tue Nov 25, 2014 6:25 pm
by jllort
Documents are stored in disk at $TOMCAT_HOME/repository/datatore folder, but the name is replaced by its UUID. Take a look some UUID and you'll easily found the a document named UUID into this folder structure.