Re-enable grants backup

as bug has been fiexed since 2019

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-04-01 13:36:01 +02:00
parent a26d9a3bd3
commit 0c2fdaaf8b
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -36,10 +36,10 @@ while [ 1 ]; do
-a --databases "${db_name}" | gzip >"${TARGET_FILE}"
done
# Dump grants -- Disabled until https://jira.percona.com/browse/PT-1561 is fixed
#GRANTS_FILE="${TARGET_DIR}/${BACKUP_DATE}_grants.sql"
#step "Creating grants backuo in ${GRANTS_FILE}..."
#pt-show-grants -h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p "${MYSQL_PASSWORD}" >"${GRANTS_FILE}"
# Dump grants
GRANTS_FILE="${TARGET_DIR}/${BACKUP_DATE}_grants.sql"
step "Creating grants backup in ${GRANTS_FILE}..."
pt-show-grants -h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p "${MYSQL_PASSWORD}" >"${GRANTS_FILE}"
# Cleanup old backups
step "Removing old backups..."