From 0e3ccb0e43bb673c49bae7151ba931e9511765bc Mon Sep 17 00:00:00 2001 From: george Date: Thu, 3 Nov 2022 10:17:57 -0400 Subject: [PATCH] adding verbosity of output --- restore-mysql-daily | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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