I have indices i need to restore from snapshot, by using rename_pattern and rename_replacement. Can someone help me with the pattern and replacement?
Let's say my input index name is: "abc_def_r22_0" and I want it restored as "abc_def_r44_0"
NUM="44"
POST /_snapshot/my_backup/snapshot_1/_restore
{
"indices": "abc_def_r22_0",
"ignore_unavailable": "true",
"include_global_state": false,
"rename_pattern": "\\d\\d",
"rename_replacement": "$1'$NUM'_0"
}