Lazy restart of multi volume backup

Aperta
#749 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/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 backup and service restart coordination code to find how the current lock works across multiple volume backups. The issue suggests a semaphore and an environment variable for compatibility, but names no files or tests. Done means services remain stopped until all backups finish and restart once afterward; check the existing backup tests and add coverage for that behavior.

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

Descrizione

enhancement

Is your feature request related to a problem? Please describe.
I am using this awesome image (thanks by the way) to backup the volumes of my mailserver. Therefore the mailserver is stopped each time a volume is backed up, which results in 6 restarts everyday. Since resarting all the services takes a lot of resources, I would love to keep the server stopped until all backups are finished.

Describe the solution you'd like
Maybe instead of using a lock, one can use a semaphore and restart the services once all the backups finished. To ensure compatibility I would suggest to activate this feature using an env var.

Describe alternatives you've considered
None

Additional context
I am happy to create a PR to solve this. But I wanted to check upfront, if you agree with this feature request before starting to work on it.

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.