Thanks.. Its working fine. So with below SLM policy
PUT /_slm/policy/nightly-snapshots
{
"schedule": "0 30 1 * * ?",
"name": "<nightly-snap-{now/d}>",
"repository": "my_repository",
"config": {
"indices": ["*"]
},
"retention": {
"expire_after": "30d",
"min_count": 5,
"max_count": 50
}
}
1)should I worry about deleting old snapshots peroidically? or retention policy will take care of that?
2) I tried to set expire_after to 1m and max_count to 5, when I create more than 5 snapshots, old ones are not getting deleted. Im able see that. I saw similar issue reported
Snapshot Retention Task not deleting expired snapshots. Im using 7.4.2. is it a bug?