Last active
August 29, 2015 13:57
Elasticsearch S3 Snapshot/Restore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install this plugin on all nodes: | |
https://github.com/elasticsearch/elasticsearch-cloud-aws | |
Then in your elasticsearch.yml file (on all nodes), setup your AWS/S3 credentials: | |
cloud: | |
aws: | |
access_key: your_access_key | |
secret_key: your_secret_key | |
Then you can create an S3 repository definition: | |
$ curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{ | |
"type": "s3", | |
"settings": { | |
"bucket": "my_bucket_name", | |
"region": "us-west" | |
} | |
}' | |
Then you can create a snapshot of your data: | |
$ curl -XPUT "localhost:9200/_snapshot/my_s3_repository/2014_03_19_snapshot?wait_for_completion=true" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment