Bug #73450 Warn when making an incremental backup based on a nonexisted backup.
Submitted: 1 Aug 2014 7:12
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Open Impact on me:
Category:MySQL Enterprise Backup Severity:S4 (Feature request)
Version:3.8 OS:Any
Assigned to: CPU Architecture:Any
Tags: incremental

[1 Aug 2014 7:12] Daniël van Eeden
MEB should give a warning if we create an incremental backup which is based on a previously created and removed backup.

How to repeat:
We have a backup script which queries mysql.backup_history to find a backup on which the incremental should be based.

This is the query:
select end_lsn from backup_history where exit_state='SUCCESS' order by end_time desc limit 1;

Then we use --incremental --start-lsn=<found_end_lsn> to make the backup.

Suggested fix:
Find the backup info in mysql.backup_history for the backup on which the incremental is based.

 - Give a warning if backup_destination points to a nonexistend location. (Only if backup_format='DIRECTORY'?)
 - Give a severe warning if exit_stat<>'SUCCESS'