This is a simple way to backup your MySQL tables to Amazon S3. This is an extended version of the original script.
This script will be run on the slave server and expects that the s3cmd is already installed on the system.
- Stop and Start slave before and after database dump respectively
- Remove old backup ( based on the value in
rotatevariable )