How to do a incremental backup in Mysql

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

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

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

use binary log (replication sql log)

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)


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x