Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 625 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 625 Bytes

aws-mysql-backups

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 to config.json with appropriate info

Usage

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.

Todo (very soon)

  • Binary log rotation and backup