[Python] Is it possible to perform a schema-only mongodump without exporting data?

Discussão em 'Python' iniciado por Stack, Junho 17, 2025.

  1. Stack

    Stack Membro Participativo

    I'm currently automating the mongodump process for both our staging and production databases using a Python script. For this use case, I only need to export the metadata—such as collection names, indexes, and validation rules—and exclude the actual data (i.e., .bson files).

    Is there a way to use mongodump (or any other tool/option) to achieve a schema-only dump without including document data?

    Any help or guidance would be much appreciated!

    Continue reading...

Compartilhe esta Página