Skip to content

Commit

Permalink
Make sure temp dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender committed Nov 20, 2023
1 parent 2dd18bb commit 1bc9758
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions db-webroot-backup/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ check_env_var "BUCKET_NAME"

DATE=$(date +%d%m%y%H%M)

mkdir -p /tmp/site-backup/

# export database
mysqldump --single-transaction -h "$DB_HOST" -u "$DB_USER" "-p${DB_PASS}" "$DB_NAME" | gzip > "/tmp/site-backup/${SITENAME}_${DATE}.sql.gz"

Expand Down

0 comments on commit 1bc9758

Please sign in to comment.