Category: Scripts

Backup to an S3 Bucket

#!/bin/bash BUCKET=bucketname MYSQL_USER=username MYSQL_PASSWORD=password MYSQL_HOST=localhost echo ‘Started’ date +’%a %b %e %H:%M:%S %Z %Y’ mysqldump -u $MYSQL_USER -p$MYSQL_PASSWORD –single-transaction –routines –triggers –all-databases | gzip >

Read More ยป