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

mongorestore --noDataRestore

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Accepted
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: mongorestore
    • Labels:
      None

      Description

      As an analogue to --noIndexRestore (and to some degree --noOptionsRestore), it would be useful if mongorestore had a --noDataRestore option.

      This would behave as if the .bson files were empty files or absent, ie. just restore the collection options and indexes, but not any actual data.

      The workaround is to clone the dump tree, but with empty or removed .bson files, and then feed that to mongorestore. An option to automate this is justified in the same way as --noIndexRestore (which can be considered an automated alternative to manually hacking the contents of the .metadata.json files).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                backlog-server-tools Backlog - Server Tools Team
                Reporter:
                kevin.pulo Kevin Pulo
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: