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

Mongodump fails partway through without authenticationDatabase option.

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.4.6
    • None
    • None
    • Linux
    • Hide

      mongodump -u admin -p whatever --db database --out /var/mongo/backup

      Show
      mongodump -u admin -p whatever --db database --out /var/mongo/backup

    Description

      The mongodump tool stops when it encounters a collection for which it doesn't have permissions.

      If a database has a large number of collections, the administrator may erroneously assume that the dump was successful based on the fact that "most" of the collections were backed up, especially if the dump is run in a cron context.

      Mongodump should backup every collection that it has permissions for. (Failing completely without backing anything up would also be preferable to backing up a random subset of collections)

      Attachments

        Activity

          People

            Unassigned Unassigned
            justkevin Kevin Lin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: