Bug #80812 Differential backup with mbi
Submitted: 21 Mar 2016 16:06 Modified: 3 May 2016 5:21
Reporter: Nicolas Moreau Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Enterprise Backup Severity:S4 (Feature request)
Version:all OS:Any
Assigned to: CPU Architecture:Any
Tags: differential incremental image

[21 Mar 2016 16:06] Nicolas Moreau
Description:
It would be good to do an incremental backup based directly on mbi file without the need to extract metadata from it or read it from backup-dir

for example :
when you have full backup on the sunday :
incremental backup each 2 hours (to avoid the need of backuping binlog... with some script)
and differential backup each day.

In this cas we cannot use --incremental-base=history:last_backup but only the dir: method

How to repeat:
do a full backup : 
mysqlbackup -uroot --backup-image=/backups/mbi/test.mbi --backup-dir=/backups/tmp backup-to-image --with-timestamp

 now : do an incremental backup based on it 
mysqlbackup -uroot - --backup-image=/backups/mbi_incr/toto_inc1bis.mbi --incremental-backup-dir=/backups/tmp_incr backup-to-image --incremental --backup-dir=/backups/tmp --incremental-base=dir:/backups/tmp 

but for the differential backup we need to keep backup-dir but the single file mbi is disappointed if it needs a directory with some files. The solution is to extract metadata. but it is really annoying to make a backup

Suggested fix:
the suggest way :
mysqlbackup -uroot - --backup-image=/backups/mbi_incr/toto_inc1bis.mbi --incremental-backup-dir=/backups/tmp_incr backup-to-image --incremental --backup-dir=/backups/tmp --incremental-base=MBI:/backups/mbi/test.mbi
[3 May 2016 5:21] Anandakumar S
Hello Nicolas Moreau,

Thank you for the reasonable feature request!

Thanks,
Anand