How to leverage the AWS PHP2 API to backup mysql
##Installation##
- pull this repo
composer.phar installto get all the dependencies- rename
config.sample.jsontoconfig.jsonwith appropriate info
Make sure that awsbackup.php is executable
awsbackup.php mysql:fullbackupwill create a gzip backup of the database set in the config, with the credentials.- Use
--helpto see how to overwrite parameters at run time. - Use the
--awsswitch to upload the resulting gzip to AWS S3.
- Binary log rotation and backup