#! /bin/bash
db_name="YOUR_DATABASE_NAME"
db_user="YOUR_DATABASE_USER"
db_host="YOUR_DATABASE_HOST"
s3_bucket="YOUR_S3_BUCKET_NAME"
s3_key="YOUR_...
For further actions, you may consider blocking this person and/or reporting abuse
The AWS CLI's
s3
sub-command allows reading-from STDIN and writing to STDOUT. If you're running MySQL as an EC2-hosted process (rather than taking advantage of RDS), you should be able to save yourself a step (and staging-space) by changing the above to:Thank you for your comment.
The script has become very simple.
Thanks.