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

restoring from dump created via mongodump inflates the db

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.3
    • Admin
    • None
    • ALL
    • Hide

      I used
      mongodump
      tar -czf ./dump.tar.gz ./dump
      (moved the archive to a new server with another instance)

      on the second server:
      tar -xzf ./dump.tar.gz
      mongorestore ./dump

      Show
      I used mongodump tar -czf ./dump.tar.gz ./dump (moved the archive to a new server with another instance) on the second server: tar -xzf ./dump.tar.gz mongorestore ./dump

    Description

      I attempted to restore a mongo backup from an archived dump. the restoration was successful but the db size grew from 4.5GB to 40GB.

      I used
      mongodump
      tar -czf ./dump.tar.gz ./dump
      (moved the archive to a new server with another instance)

      on the second server:
      tar -xzf ./dump.tar.gz
      mongorestore ./dump

      Attachments

        Activity

          People

            Unassigned Unassigned
            nadavreichler nadav reichler
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: