Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-2914

Add an upsert/save option to mongorestore

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 1.8.1
    • Tools
    • None
    • All
    • Fully Compatible

    Description

      mongorestore currently only performs inserts, and does not overwrite (upsert/save) existing records with the dump.
      It is beneficial in multiple cases to have such functionality, such as:
      1. Transferring data between environments
      2. Performing a destructive restore to rollback a server to a previous point in time

      Of course there are many more uses for this option... Please consider adding it in a future release.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shlomoid Shlomo Priymak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: