docker版oos备份工具
更新历史
名称 | 内容 |
---|---|
版本 | 1.0 |
创建时间 | 2021-10-20 |
更新时间 | 2021-10-20 |
功能清单
- 基于Docker运行
- 通过环境变量配置OSS信息
- 挂载要同步的目录到容器内/sync
- 自定义cron任务时间
下载
git clone https://github.com/mathcoder23/docker-oss-sync.git
# 加速
git clone https://hub.fastgit.org/mathcoder23/docker-oss-sync.git
编译
docker built -t docker-oss-sync:1.0 .
cd go
chmod +x build.sh
./build.sh