File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments