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

Comment on: "manual/reference/program/mongodump.txt"

    XMLWordPrintableJSON

Details

    Description

      I'm running the following command with the result error shown below:

      mongodump --username some_user --password some_pass --db some_db --authenticationDatabase admin --gzip --oplog --dumpDbUsersAndRoles --out /my/dir/
      2016-12-06T19:04:32.525-0300    Failed: bad option: --oplog mode only supported on full dumps
      

      It's running against a SECONDARY on a replica set.
      The documentation doesn't mention there is a need for a backup to be a full backup or that the --oplog option doesn't work on a SECONDARY. It even mentions a single database in the description of this option. So in this case, I'm not sure what the cause of the error is.

      Attachments

        Activity

          People

            cory.bullinger@mongodb.com Cory Bullinger
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              7 years, 10 weeks, 1 day ago