Flag to avoid backing up long-stopped containers
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Go
- Sterne
- 4.1k
- Forks
- 157
- Ø Merge
- 4 Std. 35 Min.
- Gemergte PRs (30 T.)
- 15
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus offen/docker-volume-backup
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
offen/docker-volume-backup#910 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Backup aborts when a file disappears during archiving (ENOENT from os.Lstat in writeTarball)Evtl. vergeben @ciltocruz hat das vor 2 Tagen übernommen. Offenenhancement pr welcome
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
offen/docker-volume-backup#908 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 15/100
offen/docker-volume-backup#879 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
maintenance pr welcome
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 35/100
offen/docker-volume-backup#869 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation pr welcome
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
offen/docker-volume-backup#796 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in offen/docker-volume-backup
Ähnliche Issues
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
area/ui-schema good first issue type/bug
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 4 Tagen
-
A vessel you are not flying should draw dim grey, orbit and arrow (ADR 0041), not in its own colourOffenready-for-agent
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
jasonfen/terminal-space-program#1020 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
router-for-me/CLIProxyAPI#8573 ·
Maintainer antworten meist innerhalb von 9 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
sipeed/picoclaw#3477 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag