How to do a incremental backup in Mysql [duplicate]

爷,独闯天下 提交于 2019-11-29 02:48:36

问题


Possible Duplicate:
What is the best way to do Incremental backups in Mysql?

Is there a way to do differential incremental backup in MySQL ? I dont know if there is a PHP script or shell script able to do this.

I believe each tables states must be saved and their differences must be exported in the backup. Any way to accomplish this?

I know there are other types of backup but I like the way smallers backup are generated at time in differential incremental backups.

Edit:

I forgot to specify that my DB engine is InnoDB


回答1:


Yes, is called incremental backup instead of differential backup
(correct me if I making wrong assumption)

use binary log (replication sql log)

  • http://dev.mysql.com/doc/refman/5.1/en/backup-methods.html
  • http://dev.mysql.com/doc/refman/5.1/en/point-in-time-recovery.html

in nutshell, binary log contains list of write sql (insert,delete,update,alter table...) and execute these statement sequentially will provide a incremental update (which is what replication does)



来源:https://stackoverflow.com/questions/4411057/how-to-do-a-incremental-backup-in-mysql

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!