elasticsearch-dump

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

README

elasticsearch-dump

a simple elasticsearch dump & load tool

Description

The Elasicsearch did not offer a dump tool, and the only tool provided at https://github.com/taskrabbit/elasticsearch-dump is too slowly, and depend on a nodejs environment.

Install

git clone https://github.com/shinexia/elasticsearch-dump.git
go build -v

or through prebuild binaries

curl -fsSL https://github.com/shinexia/elasticsearch-dump/releases/download/v0.1.0/elasticsearch-dump-linux-x86_64 -o elasticsearch-dump
chmod a+x elasticsearch-dump

Usage

$./elasticsearch-dump --help
NAME:
   elasticsearch-dump - A new cli application

USAGE:
   elasticsearch-dump [global options] command [command options] [arguments...]

COMMANDS:
   load     load records from file
   dump     dump records to file
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --help, -h  show help (default: false)

dump mappings
./elasticsearch-dump dump --file /tmp/myindex-mapping.json --url http://localhost:9200/myindex --type mapping
load mappings
./elasticsearch-dump load --file /tmp/myindex-mapping.json --url http://localhost:9200/myindex --type mapping
dump data
./elasticsearch-dump dump --file /tmp/myindex-data.json --url http://localhost:9200/myindex --type data
load data
./elasticsearch-dump load --file /tmp/myindex-data.json --url http://localhost:9200/myindex --type data

LICENSE

Apache License 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL