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