dragonflydb / dragonflydb/dragonfly-operator

Feature request: snapshot retention

Open
#424 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
357
Forks
111
PR merge metrics
No merged PRs in 30d

Description

I'm setting up dragonfly instance with a following snapshot config:

```yaml
spec:
# ...
snapshot:
cron: "*/2 * * * *"
persistentVolumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
```

It works beautifully, however, when left unattended, instance can rack up thousands of backup files within a month.

What would be great is if operator cleaned up older backups, something like:
```
spec:
# ...
snapshot:
cron: "*/2 * * * *"
persistentVolumeClaimSpec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
retention: "1d" # only keep up to 1 day worth of backups
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.