Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-209

Add ability to export collection metadata when dumping to stdout

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: mongodump
    • Labels:
      None
    • 1

      As it says in the docs, if you use mongodump with "--out -" to dump to stdout, it won't write the files <dbname>.metadata.json. That means, if you want to pipe the dump directly to another tool (gzip, ssh, ...), there is currently no easy way to store the metadata as well. You would have to use manual MongoDB queries to construct these json files (if I don't miss anything).

      I think an option "--metadata-only" would solve this issue. This solution might not be the best, but probably the easiest.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            pr rep1
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: