Skip to content

利用Docker容器实现定期自动将远程MySQL数据库备份到阿里云OSS存储中

Notifications You must be signed in to change notification settings

luhuiwang/docker-mysqldump-to-oss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-mysqldump-to-oss

功能

利用Docker容器实现定期自动将远程MySQL数据库备份到阿里云OSS存储中。

工具

Docker/Docker-Composemysql-client/mysqldumpOssutil

使用

  1. 补充docker-compose.yml中的环境变量;
  2. 更改定期周期:如每分钟/etc/periodic/1min每天/etc/periodic/daily,具体参考nralbers/scheduler
  3. 构建镜像:docker-compose build
  4. 启动服务:docker-compose up -d
  5. 查看日志:docker-compose logs -f
  6. 卸载服务:docker-compose down

参考

About

利用Docker容器实现定期自动将远程MySQL数据库备份到阿里云OSS存储中

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages