СИ
Size: a a a
СИ
DE
IZ
СИ
S
2020-06-23T09:19:50.903052Z 2 [Warning] Slave SQL for channel '': If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0
бэкаплю слейв с опциями —slave-info —safe-slave-backupS
200623 09:28:53 Starting rsync as: rsync -t . --files-from=/tmp/xtrabackup_rsyncfiles_pass2 /mnt/backups/daily/2020-06-23_09-20-34/
200623 09:28:53 rsync finished successfully.
200623 09:28:53 Finished backing up non-InnoDB tables and files
200623 09:28:53 Executing LOCK BINLOG FOR BACKUP...
200623 09:28:53 [00] Writing /mnt/backups/daily/2020-06-23_09-20-34/xtrabackup_slave_info
200623 09:28:53 [00] ...done
200623 09:28:53 Executing FLUSH NO_WRITE_TO_BINLOG ENGINE LOGS...
xtrabackup: The latest check point (for incremental): '62175488623'
xtrabackup: Stopping log copying thread.
.200623 09:28:53 >> log scanned up to (62175766372)
200623 09:28:53 Executing UNLOCK BINLOG
200623 09:28:53 Executing UNLOCK TABLES
200623 09:28:53 All tables unlocked
Starting slave SQL thread
200623 09:28:53 Backup created in directory '/mnt/backups/daily/2020-06-23_09-20-34/'
MySQL slave binlog position: master host 'mm-1.domain.com', filename 'mysql-bin.000064', position '818140', channel name: ''
после этого еще идут незнаительные и мелкие компирования и ни с того, ни сего отваливаетсяS
xtrabackup --databases="db1 db2 mysql" --datadir=$DATADIR --throttle=1000 --user=root --host=127.0.0.1 --password=$PASSWD --parallel=8 --rsync --slave-info --safe-slave-backup --backup --target-dir=$BACKUP_DIR/$TIME
ls
2020-06-23T09:19:50.903052Z 2 [Warning] Slave SQL for channel '': If a crash happens this configuration does not guarantee that the relay log info will be consistent, Error_code: 0
бэкаплю слейв с опциями —slave-info —safe-slave-backupS
Some errors in logfile /mnt/backups/daily, backup failedможет я тогда не о тех логах думаю? всё что есть по ошибке, капец, информативность поражает
S
grep -i error \$BKP_LOG | grep -v -e errors.ibd -e errors.frm && ERRORS=1 || ERRORS=0
if [ "\$ERRORS" -eq "1" ]; then
echo "Some errors in logfile \$BACKUP_DIR, backup failed";
exit 1;
fi
не
подскажите воркэраунд, как правильней отлавливать ошибки? а то у меня получается таблицы есть с Error словом, из-за этого завершается бэкап не успешно