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

Add ability to export collection metadata when dumping to stdout

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor - P4
    • Resolution: Gone away
    • None
    • None
    • mongodump
    • None
    • 1

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: