User Tools

Site Tools


elastic

#!/bin/bash
set -x
export ES_HOME=/usr/share/elasticsearch/
/usr/bin/rename \;076 L indices/*/*/*/*
for dir in `ls -1 indices/`; do /root/es_export/esid/bin/esid indices/$dir/?/index > /tmp/$dir.json; /usr/bin/elasticdump --input=/tmp/$dir.json --output=http://localhost:9200/$dir --limit 100000 --bulk --bulk-use-output-index-name; rm -f /tmp/$dir.json; echo Done with $dir; done

elastic.txt · Keista: 2015/07/25 00:58 vartotojo dalius