Skip to content

habitualdev/golasticdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golasticdump

tool for moving elasticsearch data written in golang

Build Status

Install

docker pull tsaikd/golasticdump:0
  • with source code and golang
go get github.com/tsaikd/golasticdump

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •