스냅샷에서 복원
Elasticsearch스냅샷명령어
POST /_snapshot/backup_repo/snap1/_restore
{
"indices": "customer",
"rename_pattern": "customer",
"rename_replacement": "customer_restored"
}하는 일
스냅샷에서 인덱스를 클러스터로 복원한다(선택적으로 이름 변경).
사용 시점
데이터 손실 후 복구할 때, 또는 백업을 테스트 환경으로 옮길 때.
주의
같은 이름으로 복원하려면 대상 인덱스가 닫혀 있거나 삭제되어 있어야 한다. 열린 인덱스 위에는 복원할 수 없다.