Export an Index or a Mapping data set from Elasticsearch into JSON file
Pull request Compare This branch is 2 commits behind markni:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitattributes
.gitignore
HISTORY.md
README.md
elasticsearch.js
index.js
package.json

README.md

This tool requires node.js and ElasticSearch.

Run this first:

$ npm install

Usage:

$ node index.js -h [host] -p [port] -i [index_name] -m [mapping] -f [file_name]

For exmaple

$ node index.js -h localhost -p 9200 -i big-data -m magic-cards -f test.json

Should backup the magic-cards into a file called "test.json"

when -i is not inputted, it will back up the entire database

$ node index.js

This will backup entire database into "backup.json"