Page 1 of 1

Backup the specified index

Posted: Thu Oct 15, 2020 11:10 pm
by winsonlee
Hi,

Excuse me, how to back up the specified index "logstash-2020.9.13" and "logstash-2020.9.14" only ?
Thanks.

Re: Backup the specified index

Posted: Fri Oct 16, 2020 3:37 pm
by cdienger
Set up a repo per https://assets.nagios.com/downloads/nag ... enance.pdf and https://assets.nagios.com/downloads/nag ... Server.pdf. Once that is done you can take snapshots of them as long as they are open:

Code: Select all

curl 'localhost:9200/_cat/indices?pretty'
curl -XPOST "localhost:9200/logstash-2020.9.13/_open"
curl -XPOST "localhost:9200/logstash-2020.9.14/_open"
/usr/local/nagioslogserver/scripts/curator.sh snapshot --repository 'reponame' --ignore_unavailable indices --index logstash-2020.9.13 --index logstash-2020.9.14
You can then disable the repo in NLS to avoid having it automatically start making ans saving snapshots with other indexes.

Re: Backup the specified index

Posted: Mon Oct 19, 2020 10:59 pm
by winsonlee
It's work, thanks for your help~

Re: Backup the specified index

Posted: Tue Oct 20, 2020 7:23 am
by scottwilkerson
winsonlee wrote:It's work, thanks for your help~
Great!

Locking thread