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