Skip to content

alpine + mysql-client + awscli + backup & restore scripts

Notifications You must be signed in to change notification settings

fizix-io/docker-mysql-s3-backup-restore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

alpine + mysql-client + awscli + backup & restore script

Backup

docker run --rm \
 --link mysql_container:mysql \
 -e AWS_ACCESS_KEY_ID=XXX \
 -e AWS_SECRET_ACCESS_KEY=XXX \
 -e S3_BUCKET=XXX \
 -e MYSQL_USER=XXX \
 -e MYSQL_PASSWORD=XXX \
 -e MYSQL_HOST=mysql \
 -e BASE_PATH=my_custom_path/my_custom_basename \
fizix/mysql-s3-backup-restore  \
/backup

Restore

docker run --rm \
 --link mysql_container:mysql \
 -e AWS_ACCESS_KEY_ID=XXX \
 -e AWS_SECRET_ACCESS_KEY=XXX \
 -e S3_BUCKET=XXX \
 -e MYSQL_USER=XXX \
 -e MYSQL_PASSWORD=XXX \
 -e MYSQL_HOST=mysql \
 -e BASE_PATH=my_custom_path/my_custom_basename \
fizix/mysql-s3-backup-restore  \
/restore

About

alpine + mysql-client + awscli + backup & restore scripts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages