Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
*Location*: https://docs.mongodb.com/v3.2/reference/program/mongodump/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0
*Screen Resolution*: 1536 x 864
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.