Only backup if volume content has changed

Đang mở
#687 6 bình luận 2 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
aws, docker, go
Lĩnh vực
cloud, devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
Go
Star
4.1k
Fork
157
Merge trung bình
4 giờ 35 phút
Pull request đã merge (30 ngày)
15

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của offen/docker-volume-backup

Tất cả issue của offen/docker-volume-backup

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.