Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Last active December 14, 2020 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanvgates/1b8270a969eb78f9f0df0825665b6102 to your computer and use it in GitHub Desktop.
Save ryanvgates/1b8270a969eb78f9f0df0825665b6102 to your computer and use it in GitHub Desktop.
Mongo Namespace Gotcha
mongorestore --host mongoose --ssl --username user --password password --authenticationDatabase myDB --archive=/dump_myDB.archive --gzip --nsInclude "myDB" --nsFrom "myDB" --nsTo "myDB"
2019-08-28T11:15:40.909-0400 preparing collections to restore from
2019-08-28T11:17:22.461-0400 done
mongorestore --host mongoose --ssl --username user --password password --authenticationDatabase myDB --archive=/dump_myDB.archive --gzip --nsFrom "myDB" --nsTo "myDB"
2019-08-28T11:43:53.381-0400 preparing collections to restore from
2019-08-28T11:43:53.440-0400 Failed: myDB.1359_23_10591_1290: error reading database: not authorized on myDB to execute command { listCollections: 1, cursor: { batchSize: 0 }, $db: "myDB" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment