[
https://issues.apache.org/jira/browse/OAK-4500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15395572#comment-15395572
]
Tomek Rękawek edited comment on OAK-4500 at 7/27/16 12:28 PM:
--------------------------------------------------------------
[~rombert], yes, the patch only contains the index-related code (everything
else already works).
I've committed the patch to trunk in
[r1754257|https://svn.apache.org/r1754257]. So, with the current trunk one
could do:
{noformat}
java -jar oak-upgrade-1.6-SNAPSHOT.jar \
--src-datastore repository/datastore \
--copy-versions=false \
--skip-init \
--include-paths=/apps,/libs \
--include-index \
mongodb://localhost:27017/oak \
mongodb://localhost:27017/oak-stripped
{noformat}
As a result, the oak-stripped database will contain only /apps, /libs and the
indexing data for these paths.
was (Author: tomek.rekawek):
[~rombert], yes, the patch only contains the index-related code (everything
else already works). I've commited in
[r1754257|https://svn.apache.org/r1754257]. So, with the current trunk one
could do:
{noformat}
java -jar oak-upgrade-1.6-SNAPSHOT.jar \
--src-datastore repository/datastore \
--copy-versions=false \
--skip-init \
--include-paths=/apps,/libs \
--include-index \
mongodb://localhost:27017/oak \
mongodb://localhost:27017/oak-stripped
{noformat}
As a result, the oak-stripped database will contain only /apps, /libs and the
indexing data for these paths.
> Create tooling for reducing a document-based repository to a list of paths
> --------------------------------------------------------------------------
>
> Key: OAK-4500
> URL: https://issues.apache.org/jira/browse/OAK-4500
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: documentmk
> Reporter: Robert Munteanu
> Assignee: Tomek Rękawek
> Attachments: OAK-4500-include-index.patch, OAK-4500-patchset.zip
>
>
> When working with Document-based stores it is sometimes useful to be able to
> reduce the repository to a certain subset for debugging purposes - it's
> easier to ship out a reduced repository state.
> Also, this would come in handy as tooling for preparing a repository mount in
> the scope of multiplexing ( OAK-3401 ).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)