Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from cloudnautique/move_restore_lock_in_script
Browse files Browse the repository at this point in the history
Moved restore in progress lock
  • Loading branch information
cloudnautique authored Aug 8, 2022
2 parents 58bc0e1 + 8f2c779 commit 48acbdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mariadb/scripts/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

set -e

touch ${backup_root_dir}/restore_in_progress

backup_filename=${1}
backup_dir_name="${1%.*}"

backup_root_dir='/backups'
backup_to_restore="${backup_root_dir}/${backup_filename}"

touch ${backup_root_dir}/restore_in_progress

if [ ! -f "${backup_to_restore}" ]; then
echo "Backup file ${backup_to_restore} not found!"
exit 1
Expand Down

0 comments on commit 48acbdb

Please sign in to comment.