Mongodb備份與還原

備份Mongo Cloud

mongodump --uri mongodb+srv://<user>:<password>@<clustername>.mongodb.net/<dbname> --out <output_folder>

備份Mongo db

mongorestore --host <hostname> <output_folder>

Restore

mongorestore --host <hostname> <backup_file_folder>