dump the elasticsearch data written in Rust.
- you must have cargo!
check your cargo version:
cargo -V
- build esdump
cd /usr/local
git clone https://github.com/qianwj/esdump.git
cd esdump
cargo build
mv target/debug/esdump .
rm -rf target
- set PATH
export ES_DUMP=/usr/local/esdump/esdump
esdump -i <your es index name>
name | desc |
---|---|
A | your es address, default value: http://localhost:9200/ |
w | scroll window, default value: 1m |
s | scroll size, default value: 10000 |
p | dump path, the directory where zip file saved. default value: ./esdump |
q | query paramters |
U | user, optional, if your es using authorization |
P | password, optional, if your es using authorization |
rt | request timeout |
ct | connection timeout |
midle | max idle connection per host |
- support query
- support zip data and upload to s3
- files name .data
- support csv
- support reindex