How to backup ES cluster


(Nilesh Date) #1

I saw the documentation in below link regarding backing up cluster .

https://www.elastic.co/guide/en/elasticsearch/guide/master/backing-up-your-cluster.html

It says we can create shared repository to backup cluster.
My question is where to run below command ? I am using redhat Linux as operating system and there is no put command.
Please correct me If I am wrong .

PUT _snapshot/my_backup


(David Pilato) #2

curl -XPUT ...


(Nilesh Date) #3

thanks David.

What will be the full command If i want to see my repository details. Lets
say repo name is my_backup

Thanks,
Nilesh Date


(David Pilato) #4

GET _snapshot/my_backup

which can be translated to:

curl -XGET localhost:9200/_snapshot/my_backup?pretty

(Nilesh Date) #5

perfect, thanks !!


(Nilesh Date) #6

Next thing is , Can I restore a data based on time interval ?
Document says , data will get restored based on Index.


(Magnus B├Ąck) #7

You can have multiple snapshots of each index. If you name your snapshots after the time when they were started it's easy to implement restore operations based on time.


(Nilesh Date) #8

thanks .


(system) #9