79498437

Date: 2025-03-10 15:23:50
Score: 0.5
Natty:
Report link

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

  1. curl -XGET '_snapshot?pretty' ==> this will list all repos in my case it is cs-automated-enc where aws opensearch stores all automated snapshots

  2. 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 .

  3. curl -XPOST '_snapshot/repository-name/snapshot-name/_restore' ==> run this command to restore snapshot from repo.

  4. RESTORE a specific index from snapshot : 
    
  5. POST _snapshot/my_repository/my_snapshot_2099.05.06/_restore
    {
      "indices": "my-index,logs-my_app-default"
    }
    
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: atul bhandari