> > db.copyDatabase(<from_dbname>, <to_dbname>, <from_hostname>);
> > db.copyDatabase(<from_dbname>, <to_dbname>, <from_hostname>, <username>, <password>);
> > db.runCommand(
... {copydb: 1, fromhost: <hostname>, fromdb: <db>,
... todb: <db>[, slaveOk: <bool>, username: <username>,
... nonce: <nonce>, key: <key>]}";
> > n = db.runCommand( { copydbgetnonce : 1, fromhost: ... } );
db.runCommand( { copydb : 1, fromhost: ..., fromdb: ..., todb: ..., username: ..., nonce: n.nonce, key: <hash of username, nonce, password > } );
PLEASE POST QUESTIONS IN THE USER GROUPS FORUM. Post non-question comments and helpful hints here.
blog comments powered by Disqus