Description:
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.
Then:
- Give a warning if backup_destination points to a nonexistend location. (Only if backup_format='DIRECTORY'?)
- Give a severe warning if exit_stat<>'SUCCESS'