Accessing the snapshot after deleting the repository

Hi Team,
We have accidentally deleted a repository that was having a valid snapshot. We understand from the snapshot documentation that, deleting a repository only unregister, that means only removes the reference to the location where the repository is storing the snapshots and snapshots themselves are untouched.

Could you please let me know how can I access this snapshot to restore the indices inside that

You should register the repository again.

Hi @DavidTurner,

Should I register with the same repository name using the below command. I have forgotten the repository name which I have deleted. This was done a month back

PUT _snapshot/repository_name
{
"type": "s3",
"settings": {
"bucket": "xyz",
"region": "us-east-1",
"access_key": "xxxxxxxxxxxxxxxxxxxx",
"secret_key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}

or is there a way I can point the snapshot to a new repository name using any other command

The repository name is not important, it's only used internally within Elasticsearch. As long as the details of the repository are the same you should be good.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.