The problem is the only way to specify the database to authenticate to is to use the -d parameter, this parameter also means the target database to restore to. And with -d specified, you can only restore single db at time.
Current work around is to either (1) temporarily turn off auth or (2) add users with write privilege for every database you want to restore.
Other tools probably have the same issue.
- is duplicated by
-
SERVER-7262 mongorestore on 2.2 fails with "Invalid ns"
- Closed
- related to
-
SERVER-7181 Assertion: 13111:field not found, expected type 2 when an error occured during the index building phase in restore
- Closed