https://github.com/shinexia/elasticdump
a simple elasticsearch dump tool written in golang
https://github.com/shinexia/elasticdump
dump elasticsearch golang
Last synced: 6 months ago
JSON representation
a simple elasticsearch dump tool written in golang
- Host: GitHub
- URL: https://github.com/shinexia/elasticdump
- Owner: shinexia
- License: mit
- Created: 2020-03-30T13:42:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-08T11:08:15.000Z (over 1 year ago)
- Last Synced: 2025-04-26T07:07:45.911Z (about 1 year ago)
- Topics: dump, elasticsearch, golang
- Language: Go
- Homepage:
- Size: 69.3 KB
- Stars: 42
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# elasticdump
a simple elasticsearch dump & load tool.
## Why was elasticdump created?
The ElasicSearch did not offer a dump tool, and the only tool provided at depends on a nodejs environment, which is not convenient.
## INSTALL
1. `go install github.com/shinexia/elasticdump`
2. or download a prebuilt binary here:
3. or build from source
``` bash
git clone https://github.com/shinexia/elasticdump.git
cd elasticdump
make
```
## EXAMPLE
``` bash
$ ./elasticdump
┌──────────────────────────────────────────────────────────┐
│ ElasticDump │
│ a simple dump/load data/mapping from elasticsearch │
│ │
│ Please give us feedback at: │
│ https://github.com/shinexia/elasticdump/issues │
└──────────────────────────────────────────────────────────┘
Example usage:
elasticdump --host http://localhost:9200 --index elasticdumptest test gen -v=10
elasticdump --host http://localhost:9200 --index elasticdumptest dump mapping
elasticdump --host http://localhost:9200 --index elasticdumptest dump data -v=4
elasticdump --host http://localhost:9200 --index elasticdumptest load mapping --delete
elasticdump --host http://localhost:9200 --index elasticdumptest load data
Usage:
elasticdump [command]
Available Commands:
completion generate the autocompletion script for the specified shell
delete delete index from elasticsearch
dump dump mapping/data from elasticsearch
gen gen testdata to elasticsearch
help Help about any command
load load mapping/data to elasticsearch
Flags:
-h, --help help for elasticdump
Use "elasticdump [command] --help" for more information about a command.
```
## LICENSE
MIT License