Skip to content

Commit 77af428

Browse files
author
Sven Speckmaier
committed
fixed incremental backup path
1 parent b659870 commit 77af428

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

entrypoint

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ restore_incremental() {
351351
local BACKUP_DIRECTORY="$1"
352352
local BACKUP_NAME="$2"
353353
local RESTORE_DIRECTORY="$3"
354+
local BACKUP_PATH="${BACKUP_DIRECTORY}/${BACKUP_NAME}"
354355

355356
echo "======================================================================"
356357
echo "= Incremental full backup ${BACKUP_PATH}"
@@ -377,7 +378,7 @@ restore_incremental() {
377378

378379
# apply the incremental backup
379380
echo "Preparing ${BACKUP_NAME}"
380-
xtrabackup --prepare --target-dir="$RESTORE_DIRECTORY" --incremental-dir="${BACKUP_DIRECTORY}/${BACKUP_PATH}"
381+
xtrabackup --prepare --target-dir="$RESTORE_DIRECTORY" --incremental-dir="${BACKUP_PATH}"
381382

382383
echo "Done preparing"
383384
# copying back the prepared directory to the data directory is done in restore() as it is a shared step

0 commit comments

Comments
 (0)