Update mysqlbu-scripts.sh
This commit is contained in:
@@ -302,8 +302,10 @@ case $1 in
|
||||
DATABASES=$(/usr/bin/mariadb -u ${MYSQLUSER} --password="${MYSQLPASS}" -e "SHOW DATABASES;" | tr -d "| " | grep -v Database)
|
||||
/bin/mariadb --execute "SET GLOBAL wsrep_desync = ON;"
|
||||
for db in $DATABASES; do
|
||||
echo -en "$(date) - Dumping the '${idsCL[LightCyan]}$db${idsCL[Default]}' table ... "
|
||||
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"
|
||||
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
|
||||
done
|
||||
/bin/mariadb --execute "SET GLOBAL wsrep_desync = OFF;"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user