Skip to content

Commit fd15538

Browse files
committed
[HWORKS-2433] Configure cleanup for old backups
1 parent d267aa9 commit fd15538

File tree

1 file changed

+33
-0
lines changed
  • docs/setup_installation/admin/ha-dr

1 file changed

+33
-0
lines changed

docs/setup_installation/admin/ha-dr/dr.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,39 @@ If any service is misconfigured, the backup status shows as `partial`. In the ex
7777
<figcaption>Backup overview page (partial setup)</figcaption>
7878
</figure>
7979

80+
#### Cleanup
81+
82+
Use the backup time-to-live (`ttl`) flag to automatically prune backups older than the configured duration.
83+
84+
```yaml
85+
global:
86+
_hopsworks:
87+
backups:
88+
enabled: true
89+
schedule: "@weekly"
90+
ttl: 60d
91+
```
92+
93+
For S3 object storage, you can also configure a bucket lifecycle policy to expire old object versions. Example for AWS S3:
94+
95+
```json
96+
{
97+
"Rules": [
98+
{
99+
"ID": "HopsFSBlocksRetentionPolicy",
100+
"Status": "Enabled",
101+
"Filter": {},
102+
"Expiration": {
103+
"ExpiredObjectDeleteMarker": true
104+
},
105+
"NoncurrentVersionExpiration": {
106+
"NoncurrentDays": 60
107+
}
108+
}
109+
]
110+
}
111+
```
112+
80113
## Restore
81114
!!! Note
82115
Restore is only supported in a newly created cluster; in-place restore is not supported.

0 commit comments

Comments
 (0)