[Feature] Automated backups of all named volumes

オープン
#446 コメント 6 件 リアクション 13 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, docker-compose, go

調査の方向性

Start by reading the Docker volume discovery and backup entry points, then review how the tool currently selects volumes and handles running containers. The issue proposes automatic backups of all named volumes, with a configurable stop policy and exclusion list; define the expected behavior and tests for discovery, exclusions, and containers before implementation. Done means newly created named volumes are backed up automatically under the agreed policy.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
I have many different docker-compose files for different services. And I am fairly certain I am not the only one. If I want to add backups I either:

  1. Have to add a backup service to each individual docker compose file, introducing a lot of duplication and maintenance.
  2. Define one new docker compose just for the backup, change all my docker compose files to utilize explicitly named volumes, and then mount all these volumes in this newly created service.

Number 1 has a lot of duplication. Number 2 has a risk of forgetting to mount new named volumes, and not backing them up.

Describe the solution you'd like
Allow this tool to use the docker socket to create a list of ALL named volumes, and back them all up automatically. We could set a default policy for whether to stop containers using a volume or not. We could run an exclude list on volumes NOT to backup. But this way, we will at least have backups for new volumes in changed existing services or entirely new docker compose files by default even if we do not change anything.

Describe alternatives you've considered
Not aware of any alternatives.

主要言語
Go
スター
4.1k
フォーク
157
平均マージ
4時間 35分
マージ済み PR(30日)
15

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

offen/docker-volume-backup のほかの issue

offen/docker-volume-backup の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。