Skip to content

Instantly share code, notes, and snippets.

View gordonmurray's full-sized avatar
🍺

Gordon Murray gordonmurray

🍺
View GitHub Profile
@gordonmurray
gordonmurray / handy_aws_cli_commands.txt
Last active April 15, 2016 11:14
Handy CLI Commands
# Sync 2 S3 buckets
aws s3 sync s3://{source} s3://{destination}
# Determine size of an S3 bucket
aws s3api list-objects --bucket {s3_bucket_name} --output json --query "[sum(Contents[].Size), length(Contents[])]"
# dump large mysql DB > tested on 200gb DBs
mysqldump -h {HOST} -u {USER} -p {TABLE} --single-transaction --default-character-set=utf8 --quick --extended-insert > {FILENAME}.sql