Home
Ngọc Thanh edited this page May 5, 2017
·
3 revisions
You can do it with 2 way:
- Add basic auth on your URL (See Notes in README.md)
elasticdump \
--input=http://username:password@localhost:9200 \
--input-index=demo/dump \
--output=http://user:pass@192.168.0.2:9200 \
--output-index=demo/dump \
--type=data
- Use Auth file
elasticdump \
--input=http://localhost:9200 \
--input-index=demo/dump \
--httpAuthFile=/path/to/your/http_auth_file \
--output=http://192.168.0.2:9200 \
--output-index=demo/dump \
--type=data
Content in http_auth_file:
user=<username>
password=<password>
NOTE: In second way, all your servers must use the same basic authentication.