This commit is contained in:
2023-05-03 17:52:17 -05:00
parent 3c9353b14f
commit 31e00b7747
2 changed files with 56 additions and 6 deletions

View File

@@ -218,13 +218,16 @@ case $1 in
fi
if [ "$BASE_BACKUP" = "" ]; then
$0 backup-base
else
$0 backup-incremental
if [ "${BACKUP_TYPE}" == "xtrabackup" ] || [ "${BACKUP_TYPE}" == "both" ]; then
if [ "$BASE_BACKUP" = "" ]; then
$0 backup-base
else
$0 backup-incremental
fi
fi
if [ "${BACKUP_TYPE}" == "mysqldump" ] || [ "${BACKUP_TYPE}" == "both" ]; then
/usr/local/bin/mysqlbu mysqldump
fi
/usr/local/bin/mysqlbu mysqldump
LATEST_BACKUP="`ls -1t $DAY_BACKUP_DIR | grep --max-count=1 --perl-regexp '^.+-'`"
ln -sfn ${DAY_BACKUP_DIR/${BACKUP_PATH}/.}${LATEST_BACKUP} ${BACKUP_PATH}/latest