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