问题
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