Step 1: Install Plugin
sudo bin/elasticsearch-plugin install repository-s3
Example settings
cloud:
aws:
access_key: AAAABBBB1234CCCC5678
secret_key: Ahfk380HqZR7sUYdeH2Xw*ZxyY8fwlF5QVQoxiJ$
s3.region: eu-central
Or use elasticsearch.keystore
with above settings.
Restart Elasticsearch nodes
- create
- verify
PUT _snapshot/s3
{
"type" : "s3",
"settings" : {
"bucket" : "your-bucket-name",
"base_path" : "elasticsearch",
"region" : "eu-central-1",
"compress" : "true"
}
}
Verify snaphost repository
POST /_snapshot/s3/_verify
- check
- create
- restore
GET _snapshot/s3/_all
PUT /_snapshot/s3/bike-rental
{
"indices": "bike-rental-*,rental-stations",
"ignore_unavailable": false,
"include_global_state": false
}
POST /_snapshot/s3/bike-rental/_restore