To do so, you need to install Mongodb tool.
https://www.mongodb.com/docs/database-tools/
To dump from Mongodb atlas
mongodump --uri "mongodb+srv://{username}:{password}@{url}/{database}"
To restore from dump to local Mongodb
// dump/{database} can be changed to where your backup locates
mongorestore --db {database} dump/{database}
搶先發佈留言