Skip to content

Commit

Permalink
Merge pull request #15 from dxw/fix-dump-dir-typos
Browse files Browse the repository at this point in the history
Fix dump directory typos
  • Loading branch information
Stretch96 authored Aug 1, 2024
2 parents ed5deec + 7675cf7 commit 8c98049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/dump-to-s3-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ DATABASES="$(mysql -N \

while IFS='' read -r DB_NAME
do
DUMP_TARGET="/$DUMP_DIR/$DATE_STRING-$DB_NAME.sql"
DUMP_TARGET="$DUMP_DIR/$DATE_STRING-$DB_NAME.sql"
echo "==> Dumping '$DB_NAME' database to $DUMP_TARGET ..."
mysqldump \
-u "$DB_USER" \
Expand All @@ -74,6 +74,6 @@ aws s3 sync . "s3://$BUCKET_NAME" \
echo "==> Uploads complete"

echo "==> Cleaning SQL files ..."
rm /tmp/sqlbackups/*.sql
rm "$DUMP_DIR/*.sql"

echo "==> SQL Backup Success!"
2 changes: 1 addition & 1 deletion bin/dump-to-s3-postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ aws s3 sync . "s3://$BUCKET_NAME" \
echo "==> Uploads complete"

echo "==> Cleaning SQL files ..."
rm /tmp/sqlbackups/*.sql
rm "$DUMP_DIR/*.sql
echo "==> SQL Backup Success!"

0 comments on commit 8c98049

Please sign in to comment.