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

Mongorestore/Import should support the optional ways in which users want data restored into a collection

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      1. error out if collection already exists (preferred default, --name?)
      2. explicitly choose --drop
      3. merge input into existing collection skipping duplicate _id records ( --replace?)
      4. merge input into existing collection replacing duplicate _id records (--upsert)
      5. skip collection that already exists (--skipCollectionExists?)

            Assignee:
            david.golden@mongodb.com David Golden
            Reporter:
            osmar.olivo Osmar Olivo
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: