Skip to content
Ngọc Thanh edited this page May 5, 2017 · 3 revisions

Getting started

Create dump with Basic Authentication

You can do it with 2 way:

  1. 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
  1. 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.

Clone this wiki locally