should the “retain” parameter in snapshots-auto endpoint delete snapshots ?
retain(integer: 1) - How many snapshots are to be kept; when writing a snapshot, if there are more snapshots already stored than this number, the oldest ones will be deleted.
I was trying to retain only 3 snapshots in an s3 bucket , but this number was exceeded and none of the old snapshots where deleted ?
is that an expected behavior ?
Vault is not going to delete older backups from S3. For that you have to setup a S3 lifecycle rule in that folder. While in the folder, click Management and “Create lifecycle rule”.