[
https://issues.apache.org/jira/browse/OAK-4500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15393621#comment-15393621
]
Tomek Rękawek commented on OAK-4500:
------------------------------------
Maybe we can use existing oak-upgrade features to do this? Following line
should do:
{noformat}
java -jar oak-upgrade-1.6-SNAPSHOT.jar \
--src-datastore repository/datastore \
--copy-versions=false \
--skip-init \
--include-paths=/apps,/libs \
mongodb://localhost:27017/oak \
mongodb://localhost:27017/oak-stripped
{noformat}
It'll also work for any supported node store (Mongo, RDB, Segment), all
combinations of blob stores, etc.
In order to copy indexing data, I created a new parameter --include-index
(patch attached: [^OAK-4500-include-index.patch]).
> 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)