Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do a incremental backup in Mysql [duplicate]

Tags:

mysql

backup

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

like image 560
Cybrix Avatar asked Dec 10 '10 16:12

Cybrix


People also ask

How do you take incremental backup in MySQL?

Incremental backups of MySQL, specifically for the InnoDB engine, are taken by copying modified pages from the previous backup. The brute force method takes backups by scanning every page in tablespace file in the server data directory is an expensive operation.

What is the difference between DeDuplication and incremental backup?

An Incremental Backup only backs up the difference since the previous FULL and subsequent incremental backups. DeDuplication only backs up blocks (or fingerprints) it does not currently have.

What is an incremental copy?

An incremental backup is a backup type that only copies data that has been changed or created since the previous backup activity was conducted. An incremental backup approach is used when the amount of data that has to be protected is too voluminous to do a full backup of that data every day.


1 Answers

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)

like image 165
ajreal Avatar answered Oct 14 '22 21:10

ajreal