|
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.
|