[Feature] Automated backups of all named volumes

Aperta
#446 6 commenti 13 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
docker, docker-compose, go

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
4.1k
Fork
157
Merge medio
4h 35m
PR unite (30g)
15

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di offen/docker-volume-backup

Tutte le issue di offen/docker-volume-backup

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.