Deprecated
- db.copyDatabase()
- db.cloneDatabase()
Current Clone
- default use
dumpfolder
mongodump - MongoDB Database Tools 100.1.1
is a utility for creating a binary export of the contents of a database. can export data from either or instances; i.e. can export data from standalone, replica set, and sharded cluster deployments. See also which provides the corresponding binary data import capability.
https://docs.mongodb.com/database-tools/mongodump/#mongodump-example-copy-clone-database

mongodump - MongoDB Database Tools 100.1.1
is a utility for creating a binary export of the contents of a database. can export data from either or instances; i.e. can export data from standalone, replica set, and sharded cluster deployments. See also which provides the corresponding binary data import capability.
https://docs.mongodb.com/database-tools/mongodump/

mongorestore - MongoDB Database Tools 100.1.1
The command has the following form: For example, to restore from a directory to a local instance running on port : As restores from the directory, it creates the database and collections as needed and logs its progress: You can also restore a specific collection or collections from the directory.
https://docs.mongodb.com/database-tools/mongorestore/

