From 245728a9ce8b536cdacf9ca5be371c46cfab1f6f Mon Sep 17 00:00:00 2001 From: Cristian R Date: Sat, 27 May 2023 10:06:33 +0300 Subject: [PATCH] Update dump.sh --- dump.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dump.sh b/dump.sh index 9e543c5..7ca8f1c 100644 --- a/dump.sh +++ b/dump.sh @@ -21,12 +21,12 @@ if test -n "${ONLY_TABLE-}"; then mysqldump -h "$DB_HOST" -u $DB_USER -p"$DB_PASS" $DB_NAME $TBLIST --verbose > $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE.sql elif [[ "${IGNORE_TABLES}" ]]; then echo "🚧 Ignoring table $IGNORE_TABLES" - mysqldump -h "$DB_HOST" -u $DB_USER -p"$DB_PASS" $DB_NAME $IGNORE --verbose | gzip -9 > $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE-2.sql.gz + mysqldump -h "$DB_HOST" -u $DB_USER -p"$DB_PASS" $DB_NAME $IGNORE --verbose | gzip > $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE-2.sql.gz echo "🚧 Uploading mysql dump ($DB_NAME-$CURRENT_DATE.sql.gz) to s3 ..." aws s3 --endpoint=https://$S3_URL cp $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE-2.sql.gz s3://${S3_BUCKET}/db/ else echo "✅Creating backup for entire database" - mysqldump -h "$DB_HOST" -u $DB_USER -p"$DB_PASS" $DB_NAME --verbose | gzip -9 > $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE-90.sql.gz + mysqldump -h "$DB_HOST" -u $DB_USER -p"$DB_PASS" $DB_NAME --verbose | gzip > $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE-90.sql.gz echo "🚧 Uploading mysql dump ($DB_NAME-$CURRENT_DATE.sql.gz) to s3 ..." aws s3 --endpoint=https://$S3_URL cp $DB_BACKUP_PATH/$DB_NAME-$CURRENT_DATE-90.sql.gz s3://${S3_BUCKET}/db/ fi