Skip to content

Commit b659870

Browse files
author
Sven Speckmaier
committed
remove debug instructions
1 parent debcdf3 commit b659870

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

entrypoint

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,8 @@ restore_incremental() {
368368
exit 1
369369
fi
370370

371-
if cp -rv "${BASE_BACKUP_PATH}" "${RESTORE_DIRECTORY}" ; then
372-
echo "Cp Success"
373-
else
374-
echo "Cp Failed"
375-
fi
376-
echo "Cp Ended"
377-
exit
371+
echo "Copying full backup"
372+
cp -Rfv "${BASE_BACKUP_PATH}" "${RESTORE_DIRECTORY}"
378373

379374
# Prepare the full backup
380375
echo "Preparing ${BASE_BACKUP_NAME}"
@@ -408,7 +403,7 @@ restore_full() {
408403

409404
# Copy the backup to a temporary restore directory. Otherwise the the backup would be prepared and it would no longer
410405
# be possible to use it as base to restore incremental backups
411-
cp -rv "${BACKUP_PATH}" "${RESTORE_DIRECTORY}"
406+
cp -Rfv "${BACKUP_PATH}" "${RESTORE_DIRECTORY}"
412407

413408
# Prepare the backup
414409
xtrabackup --prepare --target-dir="$RESTORE_DIRECTORY"

0 commit comments

Comments
 (0)