Currently in testing on VMs, my backups are on a remote server
I have made a full backup in /MySQLBackups/
I have made an incremental in /tmp/enc1/
I have made an incremental in /tmp/enc2/
Full backup was done (Launched on the MySQL test server) with:
xtrabackup --backup --user=xtrabk --password-thepass --stream=xbstream | ssh root@remoteip “cat | xbstream -v -x -C /MySQLBackups”
I check the xtrabackup_checkpoints to determine the last LSN on the backup: 4528497
Did the first incremental with:
xtrabackup --backup --user=xtrabk --password-thepass --incremental-lsb=4528498 --stream=xbstream | ssh root@remoteip “cat | xbstream -v -x -C /tmp/enc1”
I check the xtrabackup_checkpoints to determine the last LSN on the backup: 4591652
Did the second incremental with:
xtrabackup --backup --user=xtrabk --password-thepass --incremental-lsb=4591653 --stream=xbstream | ssh root@remoteip “cat | xbstream -v -x -C /tmp/enc2”
My 3 directory have the backups on my remoteip machine
When I do the prepare on the full with:
xtrabackup --prepare --apply-log-only --target-dir=/MySQLBackups
It works, but when I do:
xtrabackup --prepare --apply-log-only --target-dir=/MySQLBackups --incremental-dir=/tmp/enc1
I get:
xtrabackup: error: This incremental backup seems not to be proper for the target.
The checkpoints for Full, enc1, enc2 are:
backup_type = log-applied
from_lsn = 0
to_lsn = 4528488
last_lsn = 4528497
compact = 0
recover_binlog_info = 0
flushed_lsn = 4528497
backup_type = incremental
from_lsn = 4528498
to_lsn = 4591643
last_lsn = 4591652
compact = 0
recover_binlog_info = 0
flushed_lsn = 4591652
backup_type = incremental
from_lsn = 4591653
to_lsn = 4660765
last_lsn = 4660774
compact = 0
recover_binlog_info = 0
flushed_lsn = 4660774
This works under XtraBackup 8.0 and MySQL 8.0 but it is failing (as shown above) on XtraBackup 2.4 with MySQL 5.7
Am I doing something wrong in 2.4 or is there something different to do?