Add routines to backup of database

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

View file

@ -33,7 +33,7 @@ while [ 1 ]; do
step "Creating backup of ${db_name} in ${TARGET_FILE}..."
mysqldump \
-h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p${MYSQL_PASSWORD} \
-a --databases "${db_name}" | gzip >"${TARGET_FILE}"
-a --routines --databases "${db_name}" | gzip >"${TARGET_FILE}"
done
# Dump grants