Add .gz suffix for gzip files

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-20 12:47:20 +01:00
parent 17ca0b9294
commit 6a665df53c
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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} \