Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

How to backup?

Backup continuously to S3.

docker run -v DIRECTORY_TO_BACKUP:/data gregory90/mysql-backup-s3 /app/run
Environment variables

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 backup

Restore database from S3.

docker run -v DIRECTORY_TO_RESTORE_TO:/data gregory90/mysql-backup-s3 /app/restore
Environment variables

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,

Docker Pull Command
Owner
gregory90

Comments (0)