BackupSerenity V2.1 发布 - 开源数据库备份思路整合工具-容器编排一键部署
本次实现使用Docker-compose快速部署运行,新增Nginx 查看备份结果。将原有 30min-1h 的部署过程,提升至 3min 内完成,大幅提升部署效率
Ⅱ V2.1 开发进度
开发任务
OK.
- 思路建设ING.
- 编写readme-doc文档OK.
- 实现docker-compose运行DEL.
- 接入minio docker-compose逻辑DEL.
- 修复存储桶bucket不能为IP地址命名问题DEL.
- 增加存储参数设置提示不能以IP命名OK.
- 删除存储桶bucket相关架构设计OK.
- 研究下nginx实现文件下载和查看并设置加密(本地)OK.
- 研究下nginx实现文件下载和查看并设置加密(Dockerfile)并设置为可选项OK.
- 将ngx-fancyindex与basic加密封装为image并构建镜像OK.
- 生成为docker-compose,并以可选组件运行OK.
- 打tag version 发布 releases
版本说明
- 新增docker-comoose构建程序
- 更新backupserenity 镜像image 到2.0
- 新增backupserenity-nginx 镜像image 到2.1
- 调试冗余文档编辑
- 新增备份结果通过nginx加密查看下载
具体参考 Quick start 文档(节选):
Mount and open container docker-compose 方式构建并运行容器
[root@nginx Backupserenity-EDR]# docker-compose up -d
[+] Running 3/3
✔ Network backupserenity-NetworkCreated0.0s
✔ Container backupserenity-nginxStarted0.0s
✔ Container backupserenityStarted0.0s
[root@nginx Backupserenity-EDR]# docker-compose ps
NAME IMAGECOMMANDSERVICECREATED STATUS PORTS
backupserenity heike07/backupserenity:2.0 "/usr/sbin/init" backupserenity 9 seconds ago Up 8 seconds 0.0.0.0:3336->3306/tcp, :::3336->3306/tcp
backupserenity-nginx heike07/backupserenity-nginx:2.1 "/bin/sh -c 'nginx -…" backupserenity-nginx 9 seconds ago Up 8 seconds 0.0.0.0:8000->80/tcp, :::8000->80/tcp
[root@nginx Backupserenity-EDR]# ll
total 20
drwxr-xr-x 2 root root212 Nov 28 09:32 conf
-rw-r--r-- 1 root root843 Nov 28 14:03 docker-compose.yml
-rw-r--r-- 1 root root 44 Nov 28 11:43 htpasswd
drwxr-xr-x 6 root root 77 Nov 28 09:25 NFS_LINK_DISK
-rw-r--r-- 1 root root 1387 Nov 28 13:53 nginx.conf
[root@nginx Backupserenity-EDR]#
注:Nginx 相关配置文件容器内没有,做的文件映射,demo参考 docker-compose 文件夹下对应内容!
Container usage 开始使用容器
[root@localhost Backupserenity-EDR]# docker exec backupserenity /Backup-tools/backupserenity
Usage: /Backup-tools/backupserenity <program_name>
注:如果想设置定时任务,在crontab 中进行设置即可 命令就执行对应的程序 触发时间自行设置
For specific usage, please refer to the Quick Start section in the Github project https://github.com/heike-07/Backup-tools.git
Wishing you a pleasant use! Heike07 祝你使用愉快!Heike07