Docker binary wrapper around elasticsearch-dump
The npm binary elasticdump
is the docker entrypoint so any parameters elasticdump accepts, this docker image will as well.
Backup and index to a gzip using stdout:
$ docker run -t sherzberg/elasticdump --input=http://production.es.com:9200/my_index --output=$ | gzip > /data/my_index.json.gz
Backup the results of a query to a file:
$ docker run -t sherzberg/elasticdump --input=http://production.es.com:9200/my_index --output=query.json --searchBody '{"query":{"term":{"username": "admin"}}}'
See here for more usage.
- Basic
elasticdump
commands - Enable optional container linking for input/output es nodes
See LICENSE