How do you backup an apache Jackrabbit repository without shutting Jackrabbit down?
Asked Answered
M

1

8

When running Apache Jackrabbit JCR as an embedded service in your app, is there a quick way to get a sound and consistent backup of the contents of the Jackrabbit repository without shutting Jackrabbit down? If so how?

Maurice answered 14/12, 2008 at 18:54 Comment(0)
C
6

See BackupAndMigration on the Jackrabbit Wiki for a list of options.

I would recommend to use XML export (system view), as it is the simplest solution. Also, because it is part of the JCR standard, so it should work on other JCR implementations as well.

Note that this approach has one drawback: it is currently not possible to re-import a full export, ie. from the root node and including the jcr:system subnode that contains the version storage, since the jcr:system part and especially the version storage are not writeable (this is mainly because JCR does not specify how to import versions). Here is some explanation on the Jackrabbit mailing list.

Cyril answered 15/12, 2008 at 10:37 Comment(2)
Ok, thank you for the answer. I'm surprised that the XML export option does not back up the earlier versions of nodes. Since we use versionable nodes, I think we'll stick with shutting down and copying files the at file system level.Maurice
I updated my answer wrt the version re-import problem, because my first explanation was wrong ;-).Cyril

© 2022 - 2024 — McMap. All rights reserved.