Description
Problem
The js helper in the shell for cloneDatabase is as follows
|
|
> db.cloneDatabase
|
function (from) {
|
assert( isString(from) && from.length );
|
return this._dbCommand( { clone: from } );
|
}
|
However, this does not permit the collsToIgnore parameter to be passed. This can be done via the runCommand (see below)
Workaround
> db.runCommand( {clone: "54.191.70.12:27017", collsToIgnore: ["test.boo"]} )
|