Add Mysql dump all variables on zzz_evobackup

This commit is contained in:
Eric Morino 2022-03-02 10:56:44 +01:00
parent efd8d980c2
commit 7f0bb53cd2
1 changed files with 3 additions and 0 deletions

View File

@ -191,6 +191,9 @@ if [ "${LOCAL_TASKS}" = "1" ]; then
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
# pt-show-grants --flush --no-header > ${LOCAL_BACKUP_DIR}/mysql/all_grants.sql
# Dump all variables
# mysql -A -e"SHOW GLOBAL VARIABLES;" > ${LOCAL_BACKUP_DIR}/MySQLCurrentSettings.txt
## example with SQL dump (schema only, no data) for each databases
# mkdir -p -m 700 ${LOCAL_BACKUP_DIR}/mysql/
# for i in $(mysql --defaults-extra-file=/etc/mysql/debian.cnf -P 3306 -e 'show databases' -s --skip-column-names \