mirror of
https://github.com/luzifer-docker/mariadb-backup.git
synced 2024-12-20 18:21:16 +00:00
Add routines to backup of database
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
0c2fdaaf8b
commit
b564833182
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ while [ 1 ]; do
|
||||||
step "Creating backup of ${db_name} in ${TARGET_FILE}..."
|
step "Creating backup of ${db_name} in ${TARGET_FILE}..."
|
||||||
mysqldump \
|
mysqldump \
|
||||||
-h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p${MYSQL_PASSWORD} \
|
-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
|
done
|
||||||
|
|
||||||
# Dump grants
|
# Dump grants
|
||||||
|
|
Loading…
Reference in a new issue