A utility for safely dumping the contents of an ElasticSearch index to a compressed file and restoring it later on. This can be used for backups or for cloning an ElasticSearch index without needing to take down the server.
The file format is a ZIP file containing the index metadata, the number of objects in the index, and a series of commands to be sent to the ElasticSearch bulk API.
gem install es_dump_restore
To dump an ElasticSearch index to a file:
es_dump_restore dump ELASTIC_SEARCH_SERVER_URL INDEX_NAME DESTINATION_FILE
To restore an index to an ElasticSearch server:
es_dump_restore restore ELASTIC_SEARCH_SERVER_URL DESTINATON_INDEX FILENAME
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request