Page 1 of 1

Backup of more than just repository

PostPosted:Wed Feb 12, 2014 10:43 am
by hbuus
I'm interested in making a full backup of both repository and all other important files.

Here: http://wiki.openkm.com/index.php/Repository_backup_5.x

- I read this about making a backup from Administration in OpenKM:
"This export is only of the document repository and won't backup all other information stored in OpenKM database as user, roles, property groups definitions, workflows, mail accounts, etc."

How do you backup these other things then?

Thanks.

Best,
Henrik

Re: Backup of more than just repository

PostPosted:Fri Feb 14, 2014 7:24 am
by jllort
I suggest take a look at bottom of this page http://wiki.openkm.com/index.php/Backup_scripts is explained how backup full application ( tomcat configuration etc... ). Scripts are based on linux apps, if you're on linux the idea should be similar, with same folders.

Re: Backup of more than just repository

PostPosted:Fri Feb 14, 2014 8:16 am
by hbuus
Thanks for the reply!

Hm, I'm on Windows. What do I do then?

EDIT:
Btw. what information precisely is it that is not backed up by what is decribed as the alternative backup procedure in the link I supplied before?
I.e. it says on the help page:
"This export is only of the document repository and won't backup all other information stored in OpenKM database as user, roles, property groups definitions, workflows, mail accounts, etc."

So it's:
- users
- roles
- property groups definitions (These I can just backup by taking a backup of the PropertyGroups.xml-file, right?
- workflows
- mail accounts

What else?

Re: Backup of more than just repository

PostPosted:Fri Feb 14, 2014 11:13 am
by hbuus
Second question:

I'm trying to use Administration->Export in order to export my repository.
But which file(s) does it create, and in which directory are they put?

***************************************************************************************

Alternatively: Can't I just keep a copy of tomcat/repository and tomcat/PropertyGroups.xml?

Then if I uninstall OpenKM to delete all files and then reinstall OpenKM again afterwards, and do this:

1. Replace the default created file tomcat/PropertyGroups.xml with my backup of it
2. Boot OpenKM
3. Log in as okAdmin and register Property Groups, and log off okAdmin again
4. Shutdown OpenKM
5. Replace the default created dir tomcat/repository with my backup of it
6. Boot openKM again

Then will it work? I.e. will my backup of my repository then be up and running again?

Thanks for all the help, I appreciate it!

Re: Backup of more than just repository

PostPosted:Sun Feb 16, 2014 9:45 am
by jllort
What you propose is like a migration between versions. In this case there's minimal information that will not be exported, that will be:
1- users and roles definitions
2- profiles
3- reporstm, automation task and crontab task if you registered ones.
4- configuration parameters

If you backup also it, then you will get all. I suggest read the migration procedure from 5.1.11 to 6.2.X here you got and example of all steps. In any OpenKM version steps will be very similar or exactly the same. http://wiki.openkm.com/index.php/Migrat ... .11_to_6.2

Note You'll see in scripts we force roles have ROLE_ at the begging of a role. Really it's not necessary and I never do. That's why because spring security suggest it, but really is not mandatory and I do not like much.