Flag to avoid backing up long-stopped containers
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
Hướng nghiên cứu
Start by reading the backup scheduling and container inspection code, then trace how backup timestamps are recorded and used. The issue suggests comparing Docker's StartedAt and FinishedAt values with the latest backup date; done means a configuration or container-label flag can skip backups for stopped containers unchanged since that backup. The issue does not name specific files or tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It would be nice to be able to add a flag (either in the config or in the container labels) to avoid making a backup if the container is stopped AND it was last stopped before the latest backup.
My use case is this: I have a game server container that I start on demand. There may be periods on which it'll be used almost every day and periods of months when it will be permanently stopped. I would like to run backups only when there are actual changes to the state of the container. When used in conjunction with backup pruning this also avoids having N backups of the same exact thing and allows to keep the last N states.
By running docker inspect I found that there are the StartedAt and FinishedAt properties, so it should be relatively easy to pull this info up and compare it with the last backup date.
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của offen/docker-volume-backup
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
offen/docker-volume-backup#910 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Có thể đã có người làm @ciltocruz đã nhận 2 ngày trước. Đang mởenhancement pr welcome
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
offen/docker-volume-backup#908 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Feat: age post quantum supportĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
offen/docker-volume-backup#879 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Migrate away from `minio-go`Đang mởmaintenance pr welcome
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
offen/docker-volume-backup#869 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation pr welcome
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
offen/docker-volume-backup#796 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của offen/docker-volume-backup
Issue tương tự
-
area/ui-schema good first issue type/bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
router-for-me/CLIProxyAPI#8573 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
bug: minute-granularity sync timestamp makes e2e tests asserting "Already in sync" fail sporadicallyĐang mởbug package:cmd priority:3-low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
docToolchain/Bausteinsicht#761 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Flaky test: kb TestUnknownLabelValuesAreFoldedNotExported fails when the start epoch contains 799Đang mởarea/knowledge kind/bug priority/p1 status/accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openagentix/openagentix#253 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
quii/learn-go-with-tests#934 · 1 bình luận ·