Update mysqlbu-scripts.sh

This commit is contained in:
2025-09-12 18:11:48 -05:00
parent 179b072ef0
commit 3e8f3c6b9d

View File

@@ -302,8 +302,10 @@ case $1 in
DATABASES=$(/usr/bin/mariadb -u ${MYSQLUSER} --password="${MYSQLPASS}" -e "SHOW DATABASES;" | tr -d "| " | grep -v Database) DATABASES=$(/usr/bin/mariadb -u ${MYSQLUSER} --password="${MYSQLPASS}" -e "SHOW DATABASES;" | tr -d "| " | grep -v Database)
/bin/mariadb --execute "SET GLOBAL wsrep_desync = ON;" /bin/mariadb --execute "SET GLOBAL wsrep_desync = ON;"
for db in $DATABASES; do for db in $DATABASES; do
echo -en "$(date) - Dumping the '${idsCL[LightCyan]}$db${idsCL[Default]}' table ... "
FILE="${DEST_DIR}/$db.sql.gz" FILE="${DEST_DIR}/$db.sql.gz"
/bin/mariadb-dump --single-transaction --routines --master-data --flush-logs --quick -u ${MYSQLUSER} --password="${MYSQLPASS}" -B $db | gzip > "$FILE" /bin/mariadb-dump --single-transaction --routines --master-data --flush-logs --quick -u ${MYSQLUSER} --password="${MYSQLPASS}" -B $db | gzip > "$FILE"
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
done done
/bin/mariadb --execute "SET GLOBAL wsrep_desync = OFF;" /bin/mariadb --execute "SET GLOBAL wsrep_desync = OFF;"