diff --git a/restore-mysql-daily b/restore-mysql-daily index fee323e..ddb7e21 100644 --- a/restore-mysql-daily +++ b/restore-mysql-daily @@ -18,8 +18,8 @@ fi NEWDATE=$(ls -1rd $ARCHPATH | head -1) for FILE in $NEWDATE/backup_data/*.gz; do FILE=$(basename $FILE) - if [[ "${SKIPDBS[*]}" =~ ${FILE%%.*} ]]; then echo "--$FILE";continue; fi; - if [[ "${SETPOSDB}" =~ ${FILE%%.*} ]]; then SETPOSFILE=$FILE;continue; fi; + if [[ "${SKIPDBS[*]}" =~ ${FILE%%.*} ]]; then echo "-- skipping $FILE";continue; fi; + if [[ "${SETPOSDB}" =~ ${FILE%%.*} ]]; then echo "-- recognized $FILE for master position and log file";SETPOSFILE=$FILE;continue; fi; if [[ -z $OLDDATE ]]; then OLDSIZE=$(stat -c %s $OLDDATE/backup_data/$FILE) else