0

I would like know how to use the option "--excludeCollectionsWithPrefix" of the mongodump ?

I have some collections name with numbers like this:

   registry.logging_event_15313531
   registry.logging_event_143432432
   registry.logging_event_18979865
   registry.logging_event_905998132

I would like remove of mongodump every collection with "registry.logging "

1

I don't know squat about MongoDB but after reading the docs something like the following is probably what you're looking for:

mongodump  --db test --excludeCollectionsWithPrefix registry.logging
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.