Page 1 of 1
Restore Config Snapshots
Posted: Mon Jun 03, 2019 9:51 pm
by lukedevon
Hi
In case of all my cluster nodes are crashed, how can I restore "Config Snapshots" to a brand new NLS cluster?
I have taken backups of these files already to an external device. --> applyconfig.snapshot.xxyyzzyycc.tar.gz
May I know the procedure?
Thank you
Luke.
Re: Restore Config Snapshots
Posted: Tue Jun 04, 2019 4:45 pm
by scottwilkerson
The apply config snapshots are just for the logstash config only, I would recommend this procedure for what you need
https://assets.nagios.com/downloads/nag ... Server.pdf
Re: Restore Config Snapshots
Posted: Tue Jun 04, 2019 8:03 pm
by lukedevon
Hi
I have read this doc. Then it seems there is no way to restore only the config snapshots. I was looking for a method to restore only config snapshots.
We cant use applyconfig.snapshot.xxyyzzyycc.tar.gz backup to restore in a complete crash.
Then According to the doc, the following is the only way;
System Backups
System backups contain the configuration settings, dashboards, users, internal logs, alerts. Also included are
the Inputs, Filters and Outputs for Logstash
Then just to recover input/output and other filters, we need to restore the content in /store/backups/nagioslogserver/.
cd /usr/local/nagioslogserver/scripts/
./restore_backup.sh /store/backups/nagioslogserver/nagioslogserver.YYYY-MM-DD.xxxxxxxxxx.tar.gz
Thank you
Luke
Re: Restore Config Snapshots
Posted: Wed Jun 05, 2019 7:31 am
by scottwilkerson
This is true because if the index that contains the logstash configuration is crashed, it is the same index that contains all the other configuration info and you would have lost that as well.