Skip to content

Latest commit

 

History

History
executable file
·
29 lines (24 loc) · 755 Bytes

README.md

File metadata and controls

executable file
·
29 lines (24 loc) · 755 Bytes

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,