Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2444

Add note to mongodump docs about existing files

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • v1.3.9
    • None
    • manual
    • None

    Description

      I had various MongoDB instances that I wanted to unify into one:

      mongodump --dbpath ~/instance1 -d mydb -c mycoll
      mongodump --dbpath ~/instance2 -d mydb -c mycoll
      ...

      The workflow I imagined was that I'd dump all the database, then run `mongorestore`. In actuality, dumps will be overwritten by subsequence mongodump commands, so the workflow would be:

      mongodump --dbpath ~/instance1 -d mydb -c mycoll
      mongorestore
      mongodump --dbpath ~/instance2 -d mydb -c mycoll
      mongorestore

      Probably works as intended, but may be worth documenting that the dump files will be overwritten.

      Attachments

        Activity

          People

            tim.slavin Tim Slavin
            dandv Dan Dascalescu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              9 years, 29 weeks, 1 day ago