golasticdump

command module
v7.0.0-...-d41eddb Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 2 Imported by: 0

README

golasticdump

tool for moving elasticsearch data written in golang

Build Status

Install

  • with source code and golang
go get github.com/tsaikd/golasticdump/v7@latest

Examples

  • Copy an index from production to staging
golasticdump \
	--input="http://production.es.com:9200/my_index" \
	--output="http://staging.es.com:9200/my_index"
  • Copy an index from production to file
golasticdump \
	--input="http://production.es.com:9200/my_index" \
	--output="my_index.dump"
  • Copy indices
golasticdump \
	--input="http://production.es.com:9200/my_index-*" \
	--output="http://staging.es.com:9200"
  • Move indices
golasticdump --delete \
	--input="http://production.es.com:9200/my_index-*" \
	--output="http://staging.es.com:9200"
  • Merge indices
golasticdump --delete \
	--input="http://production.es.com:9200/my_index-*" \
	--output="http://staging.es.com:9200/merged_index"

Reference

inspired by taskrabbit/elasticsearch-dump

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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