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

Mongodump fails partway through without authenticationDatabase option.

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.4.6
    • Component/s: 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

      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)

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

              Created:
              Updated:
              Resolved: