I have a default installation of Elasticsearch. It seems to be storing it\'s data in
/var/lib/elasticsearch/elasticsearch/nodes
So two qu
If you are more cautious about moving your critical data, cp with preserving all attributes (owner, group, timestamp, etc.) can help.
cp -r --preserve=all /var/lib/elasticsearch/ /foo/bar/
Open elasticsearch.yml and set path.data to new location
path.data: /foo/bar/elasticsearch/
Restart elasticsearch server. now you can safely remove source data.
rm -rf /var/lib/elasticsearch/