Skip to content

Commit

Permalink
Merge pull request #54 from Chia-Network/backup-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Nov 20, 2023
2 parents b54763a + 7beb12f commit 4991b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db-webroot-backup/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mkdir -p /tmp/site-backup/
mysqldump --single-transaction -h "$DB_HOST" -u "$DB_USER" "-p${DB_PASS}" "$DB_NAME" | gzip > "/tmp/site-backup/${SITENAME}_${DATE}.sql.gz"

# export files
tar cvzf "/tmp/site-backup/${SITENAME}_${DATE}.tar.gz" -C "$WEBROOT_PATH"
tar cvzf "/tmp/site-backup/${SITENAME}_${DATE}.tar.gz" -C "$WEBROOT_PATH" .

# sync to amazon
aws s3 cp "/tmp/site-backup/${SITENAME}_${DATE}.sql.gz" "s3://${BUCKET_NAME}/"
Expand Down

0 comments on commit 4991b1e

Please sign in to comment.