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

Add note to mongodump docs about existing files

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • v1.3.9
    • Affects Version/s: None
    • Component/s: manual
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved:
              9 years, 39 weeks, 2 days ago