#Elasticsearch (5.0.1) snapshot 생성
1. config
path.repo: ["[MOUNT_PATH]"]
2. restart all nodes
3. create backup
curl -XPUT '[IP]:9200/_snapshot/my_backup' -d '{
"type": "fs",
"settings": {
"location": "[MOUNT_PATH]",
"compress": true
}
}'
4. check
curl -XGET '[IP]:9200/_snapshot/my_backup?pretty'
5. excute
curl -XPUT '[IP]:9200/_snapshot/my_backup/snapshot_20170801?wait_for_completion=true&pretty' -d '{
"indices": "[INDEX]",
"ignore_unavailable": "true",
"include_global_state": "false"
}'
6. check during processing
curl -XGET '[IP]:9200/_snapshot/my_backup/_current?pretty'
7. check completed snapshot
curl -XGET '[IP]:9200/_snapshot/my_backup/snapshot_20170801?pretty'
8. delete snapshot
curl -XDELETE '[IP]:9200/_snapshot/my_backup/snapshot_20170801'
9. delete snapshot dump (스냅샷 과정 도중에 실행하면 실행이 중단되고 스냅샷이 제거된다)
curl -XDELETE '[IP]:9200/_snapshot/my_backup/snapshot_20170801'
'IT > Elasticsearch' 카테고리의 다른 글
[Elasticsearch] -H 'Content-Type: application/json' (0) | 2018.03.09 |
---|---|
[Elasticsearch] php에서 elasticsearch 다루기 (0) | 2017.04.24 |
[delete_by_query] 쿼리 & 삭제 (0) | 2017.03.27 |
[Elasticsearch] 성능 극대화 (0) | 2016.12.15 |
[Elasticsearch] 스케일 아웃 (0) | 2016.12.15 |