NOTE : Most automated snapshots are stored in the cs-automated
repository. If your domain encrypts data at rest, they're stored in the cs-automated-enc
repository.
RUN these commands to restore automated snapshots taken by aws opensearch
just login into your aws elastic search domain
run command
curl -XGET '_snapshot?pretty' ==> this will list all repos in my case it is cs-automated-enc where aws opensearch stores all automated snapshots
curl -XGET 'domain-endpoint/_snapshot/repository-name/_all?pretty' ==> in repository-name put your repo name like in my case it is cs-automated-enc .
curl -XPOST '_snapshot/repository-name
/snapshot-name
/_restore' ==> run this command to restore snapshot from repo.
RESTORE a specific index from snapshot :
POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore
{
"indices": "my-index,logs-my_app-default"
}