From 94eaf90c4fe2c43d157511e5979d17b6fe7c2ea9 Mon Sep 17 00:00:00 2001 From: bas Date: Mon, 21 Jun 2021 13:46:28 +0200 Subject: [PATCH] Update default DBS_SKIP Updated databases that need to be skipped by default. --- backup_mysql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup_mysql.sh b/backup_mysql.sh index 2241fea..59eaa84 100755 --- a/backup_mysql.sh +++ b/backup_mysql.sh @@ -110,7 +110,7 @@ if [[ -n ${MYSQL_PW} && "${MYSQL_PW}" != "" ]]; then MYSQL_OPTS="${MYSQL_OPTS} -p${MYSQL_PW}" fi # Get list of Databases except the pid file -DBS_SKIP="'mysql','performance_schema','sys','information_schema'" +DBS_SKIP="'performance_schema','information_schema'" DBS_LIST=$(mysql ${MYSQL_OPTS} -s -N -e "SELECT schema_name FROM information_schema.schemata WHERE schema_name NOT IN (${DBS_SKIP});") index=0