Hi All,
I have configured daily snapshot policy without retention and it is working fine.
{
"daily-snapshots" : {
"version" : 1,
"modified_date_millis" : 1575888007858,
"policy" : {
"name" : "<daily-snap-{now/d}>",
"schedule" : "0 30 1 * * ?",
"repository" : "dev-daily",
"config" : { }
},
"last_success" : {
"snapshot_name" : "daily-snap-2019.12.09-bidynlesslybklx6xjpfow",
"time" : 1575889231555
},
"next_execution_millis" : 1575941400000
}
}
However, when I delete this policy and add new one with retention, GET method doesn't show retention settings.
PUT _slm/policy/daily-snapshots
{
"name" : "<daily-snap-{now/d}>",
"schedule" : "0 30 1 * * ?",
"repository" : "dev-daily",
"config" : {},
"retention":
{
"expire_after": "1d",
"min_count": 1,
"max_count": 2
}
}
GET method result
{
"daily-snapshots" : {
"version" : 1,
"modified_date_millis" : 1575890608730,
"policy" : {
"name" : "<daily-snap-{now/d}>",
"schedule" : "0 30 1 * * ?",
"repository" : "dev-daily",
"config" : { }
},
"next_execution_millis" : 1575941400000
}
}
Because of which, my older snapshots are not getting deleted. Please help