mirror of
https://github.com/luzifer-docker/mariadb-backup.git
synced 2024-12-20 10:21:15 +00:00
Add .gz suffix for gzip files
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
17ca0b9294
commit
6a665df53c
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ while [ 1 ]; do
|
|||
|
||||
# Create backup
|
||||
for db_name in ${DATABASES}; do
|
||||
TARGET_FILE="${TARGET_DIR}/${BACKUP_DATE}_${db_name}.sql"
|
||||
TARGET_FILE="${TARGET_DIR}/${BACKUP_DATE}_${db_name}.sql.gz"
|
||||
step "Creating backup of ${db_name} in ${TARGET_FILE}..."
|
||||
mysqldump \
|
||||
-h "${MYSQL_HOST:-mariadb}" -u "${MYSQL_USER:-root}" -p${MYSQL_PASSWORD} \
|
||||
|
|
Loading…
Reference in a new issue