/yabm

Mysql backups

Primary LanguageRust

Overview

Back up all databases on a mysql server using mysqldump, gzip the backup file, then copy that file to s3.

If the SLACK_URL environment variable is set, a message will be sent to slack every time a database backup is performed.

Environment variables

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
AWS_URL
MYSQL_PWD
MYSQL_USER
MYSQL_HOST
SLEEP_DURATION //How much time between backups in seconds. Default is 86400
BACKUPS_TO_KEEP //How many backup files to keep on s3.
SLACK_URL //Optional slack webhook url.