GT
xtrabackup --user=root --password=pass --host=127.0.0.1 --backup --datadir=/mnt/mysql_data/data --target-dir=/home/ec2-user/inc/inc1 --incremental-basedir=/home/ec2-user/full
xtrabackup --user=root --password=pass --host=127.0.0.1 --backup --datadir=/mnt/mysql_data/data --target-dir=/home/ec2-user/inc/inc2 --incremental-basedir=/home/ec2-user/inc/inc1
xtrabackup --prepare --apply-log-only --target-dir=full
xtrabackup --prepare --apply-log-only --target-dir=/home/ec2-user/full --incremental-dir=/home/ec2-user/inc/inc1
xtrabackup --prepare --target-dir=/home/ec2-user/full --incremental-dir=/home/ec2-user/inc/inc2
xtrabackup --apply-log-only should be used when merging all incrementals except the last one. That’s why the previous line doesn’t contain the xtrabackup --apply-log-only option. Even if the xtrabackup --apply-log-only was used on the last step, backup would still be consistent but in that case server would perform the rollback phase.
если у меня повяляется след. 3 инкремента, мне её нужно мерджить с ключем --apply-log-only
или без?