Skip to content

my6889/mysqldump_to_s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

创建镜像 docker build -t letote/mysqldump:0.1 .

备份所有非配置项的数据库 docker run --rm -v /Users/sunshiwei/Downloads/tongbu:/mysqldump
-e AWS_ACCESS_KEY_ID=*******
-e AWS_SECRET_ACCESS_KEY=******
-e AWS_BUCKET=******
-e PREFIX=******
-e ALL_DATABASES=TRUE
-e DB_PASS=******
-e DB_USER=******
-e DB_HOST=******
letote/mysqldump:0.1

备份指定数据库 docker run --rm -v /Users/sunshiwei/Downloads/tongbu:/mysqldump
-e AWS_ACCESS_KEY_ID=*******
-e AWS_SECRET_ACCESS_KEY=********
-e AWS_BUCKET=******
-e PREFIX=******
-e DB_NAME=******
-e DB_PASS=******
-e DB_USER=******
-e DB_HOST=******
letote/mysqldump:0.1

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published