简体   繁体   中英

MongoDB backup and restore in production

I have a MERN app running on AWS EC2.I guess terminating the instance will remove all databases. So is there any good practice in backing up my MongoDB collections locally or saving them in remote?. I want to have a backup of my production db. Is there any suggestion how can I regularly backup and save my Database?

Thank you for reading!

You can get mongoDB database backup and restore script in PHP from here https://github.com/sulochanatutorials/php-mongodb-backup-restore

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM