how to copy database from mongodb to local repository code example
Example: mongodb copy database from remote to local
db.copyDatabase("DATABASENAME", "DATABASENAME", "localhost:27018");
db.copyDatabase("DATABASENAME", "DATABASENAME", "localhost:27018");