摘要
互联网的蓬勃发展,使得MySQL和MongoDB数据库被架构师们广泛的采纳,并且很多时候两者被同时应用在后端设计中,针对它们的数据备份是重要的部分。备份策略基本上都是周期性的全库备份和增量备份。单就一种数据库来说备份实现不难,但如果两个数据库数据带有相关性,需要一起协同备份,那么备份实现就复杂了。本文以实际网站备份案例为基础,介绍了基于Mysql和MongoDB的协同备份方案和实现。内容涉及MySQL和MongoDB各自的备份和还原。
The vigorous development of the Internet, which makes the MySQL and MongoDB database is adopted widely by architects, and many times two is also used in the back-end design, according to the data backup is an important part of their. Backup strategy basically is a whole database backup and incremental backup periodic. Alone in a database backup is not difficult, but if two database data with correlation together, need backup, then the backup to achieve complex. This paper is based on actual site backup case, introduces and implements collaborative backup scheme based on Mysql and MongoDB.The content includes MySQL and MongoDB each backup and restore.
出处
《电子科学技术》
2015年第3期358-365,共8页
Electronic Science & Technology