forked from Deuxfleurs/infrastructure
26 lines
386 B
Markdown
26 lines
386 B
Markdown
Start by following ../restic
|
|
|
|
## Garbage collect old backups
|
|
|
|
```
|
|
mc ilm import deuxfleurs/${BUCKET_NAME} <<EOF
|
|
{
|
|
"Rules": [
|
|
{
|
|
"Expiration": {
|
|
"Days": 62
|
|
},
|
|
"ID": "PurgeOldBackups",
|
|
"Status": "Enabled"
|
|
}
|
|
]
|
|
}
|
|
EOF
|
|
```
|
|
|
|
Check that it has been activated:
|
|
|
|
```
|
|
mc ilm ls deuxfleurs/${BUCKET_NAME}
|
|
```
|
|
|