Only backup if volume content has changed

未关闭
#687 6 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
aws, docker, go
领域
cloud, devops

调研方向

The issue proposes skipping backups when Docker volume contents have not changed, with hashing or volume size as possible approaches. Start by reading the backup flow and how it handles Docker volumes and S3 uploads; the issue names no files or tests. Done means unchanged volumes are not uploaded again, while changed volumes still receive backups, with behavior covered by tests.

由索引模型根据 Issue 内容生成。

描述

enhancement pr welcome

Is your feature request related to a problem? Please describe.
I have docker volumes which can easily be unchanged for weeks if not months, so it would be inefficient and mostly a waste of my money to overwrite the backups in AWS S3 if the content hasn't changed.

Describe the solution you'd like
I have no solution I like, but some ideas are: using a non-encrypting hashing functionality to check for file change or you could compare the docker volume size.

Describe alternatives you've considered
I looked into using custom command, but as far as I know it doesn't support halting the executing of the backup.

Additional context
I do not use the internal cron-job functionality, but instead use an external script which attaches and detaches the docker container to all the existing volumes and uploads all the archives to AWS S3

主要语言
Go
星标
4.1k
派生
157
平均合并
4 小时 35 分钟
30 天内合并 PR
15

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

offen/docker-volume-backup 的其他 Issue

查看 offen/docker-volume-backup 的全部 Issue

相似的 Issue

更多 Go Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。