Backup continuously to S3.
docker run -v DIRECTORY_TO_BACKUP:/data gregory90/mysql-backup-s3 /app/run
TIMEOUT - how often perform backup, in seconds,
AWS_ACCESS_KEY_ID- AWS S3 access key,
AWS_SECRET_ACCESS_KEY - AWS S3 secret key,
BUCKET - AWS S3 bucket for backup,
DBHOST - MySQL host,
DBPORT - MySQL port,
DBUSER - MySQL user,
DBPASS - MySQL password.
Restore database from S3.
docker run -v DIRECTORY_TO_RESTORE_TO:/data gregory90/mysql-backup-s3 /app/restore
AWS_ACCESS_KEY_ID- AWS S3 access key,
AWS_SECRET_ACCESS_KEY - AWS S3 secret key,
FILE - file to restore,
BUCKET - AWS S3 bucket for backup,