I'm trying to copy between two different DBs on MongoLab using the mongo CLI. I followed the docs - http://docs.mongodb.org/manual/reference/method/db.copyDatabase/
- Connected to the target DB.
Ran the following:
db.copyDatabase('source-db', 'target-db', 'source-host', 'source-user', 'source-pwd')
But I always getting:
{ "ok" : 0, "errmsg" : "unauthorized" }
copyDatabase()to a shared destination database there.