MySQL Enterprise Backup User's Guide (Version 8.0.37)

19.4 Validation Operations

To ensure the integrity of the backup data, MySQL Enterprise Backup provides a validate command for validating a backup by the checksum values of its data pages after the backup is created or transferred to another system.

mysqlbackup [STD-OPTIONS]
             [--backup-dir=PATH][--backup-image=IMAGE] 
            [MESSAGE-LOGGING-OPTIONS]
            [PROGRESS-REPORT-OPTIONS]
            [CLOUD-STORAGE-OPTIONS]
            validate

validate

Verifies that a backup is not corrupted, truncated, or damaged. This operation validates the checksum value for each data page in a backup.

To avoid spending excessive time and resources on files that are too heavily corrupted, mysqlbackup stops validating a .ibd file after more than twenty corrupted pages are found in it, and proceeds to the next file instead. In that case, the operation's summary will not give a full count of corrupted pages, but only says at least 20 pages are corrupted.

The operation also has the following limitations:

Here is a sample command for validating a backup image:

mysqlbackup -uroot --backup-image=/logs/fullimage.mi  validate

Advanced: Here is a sample command for validating a backup directory:

mysqlbackup -uroot --backup-dir=/logs/backupext validate

For more usage examples for the validate command, see Section 4.2.3, “Verifying a Backup”