Working with Elasticsearch Snapshots

Create a snapshot

View existing repositories
curl -XGET 'localhost:9200/_snapshot/_all?pretty=true'

Create a directory accessible to the user running elasticsearch
mkdir backup
chown -R elasticsearch:elasticsearch /path-to/backup

Let elasticsearch know about path.repo (or in elasticsearch.yaml)
./bin/elasticsearch -Dpath.repo=/path-to/backup

Create a snapshot repo

Take a snapshot
curl -X PUT "localhost:9200/_snapshot/osm/snapshot_1?wait_for_completion=true"

Restore from Snapshot

todo…