mirror of
https://github.com/luzifer-docker/mariadb-backup.git
synced 2024-12-20 18:21:16 +00:00
Disable grants export, does not work with mariadb
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6a665df53c
commit
692d1f3cd5
1 changed files with 4 additions and 4 deletions
|
@ -36,10 +36,10 @@ while [ 1 ]; do
|
||||||
-a --databases "${db_name}" | gzip >"${TARGET_FILE}"
|
-a --databases "${db_name}" | gzip >"${TARGET_FILE}"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Dump grants
|
# Dump grants -- Disabled until https://jira.percona.com/browse/PT-1561 is fixed
|
||||||
GRANTS_FILE="${TARGET_DIR}/${BACKUP_DATE}_grants.sql"
|
#GRANTS_FILE="${TARGET_DIR}/${BACKUP_DATE}_grants.sql"
|
||||||
step "Creating grants backuo in ${GRANTS_FILE}..."
|
#step "Creating grants backuo in ${GRANTS_FILE}..."
|
||||||
pt-show-grants -h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p "${MYSQL_PASSWORD}" >"${GRANTS_FILE}"
|
#pt-show-grants -h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p "${MYSQL_PASSWORD}" >"${GRANTS_FILE}"
|
||||||
|
|
||||||
# Cleanup old backups
|
# Cleanup old backups
|
||||||
step "Removing old backups..."
|
step "Removing old backups..."
|
||||||
|
|
Loading…
Reference in a new issue