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

Add ability to export collection metadata when dumping to stdout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongodump
    • Labels:
      None

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: