How to take backup actual data from Linux Elasticseach path

Dear All.

i having some issue while taking backup of all elasticsearch index from linux 18.04 VM Azure machine .

i given data path for Linux is :-
/var/lib/elasticsearch/* file>(elasticsearch.yml)
/var/lib/elasticsearch/nodes/0/_state

but which file need to copy for taking backup all index in different elastic search machine .

please help me .

Thanks
HadoopHelp

Backups at the file system level are not supported. Please use the snapshot and restore API instead.

Hi @Christian_Dahlqvist.

Thanks

is it possible to take that snapshot with some other elastic search host machine?

because i wanna to move all elastic index from current linux machine to other machine ?

Thanks
HadoopHelp

Snapshots require shared storage, but you can mount that onto other clusters once the snapshot is created and restore data there.