Allow specific restic snapshots to be marked for persistence

Aperta
#601 0 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
go

Direzione di ricerca

Inizia tracciando le impostazioni di retain e l’invocazione di restic forget da parte del backend descritte nell’issue. Definisci come funzionerebbe un’impostazione keep-tag, quindi verifica che gli snapshot contrassegnati sopravvivano alla pulizia mentre le regole di conservazione esistenti continuano ad applicarsi.

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

Descrizione

enhancement

Describe the feature you'd like to have.
I'd like to be able to mark a specific snapshot to be immune to the retain: settings that trigger the restic forget command on the backend. I'm thinking that as a first step for this feature, being able to specify a tag that is excluded from the forget command:

    retain:
      daily: 10
      within: 3d
      keep-tag: donotdelete

Then the restic forget command would be executed like:

restic forget --keep-daily 10 --keep-within 3d --keep-tag donotedelete

This would allow the user to go into a restic pod, and do

restic tag --add donotdelete 05e9f599

to tag a particular snapshot and exclude it from the forget command.

What is the value to the end user? (why is it a priority?)
In the event of a data loss incident, where recovery might not be possible immediately, but you still want to retain the data for later analysis or restoration past the retain date, being able to go in and tag a snapshot for persistence would be useful.

How will we know we have a good solution? (acceptance criteria)
User has a mechanism to retain a snapshot past the retain window settings.

Additional context
The only way I can think of to do this today is to delete the existing replicationsource to avoid the forget cleanup policy from being applied.

Lingua principale
Go
Stelle
1k
Fork
103
Merge medio
2g 1h
PR unite (30g)
47

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 backube/volsync

Tutte le issue di backube/volsync

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.