Page 1 of 1

restoreXI from one server, restore to anther to copy env

Posted: Thu May 14, 2015 3:42 pm
by kendallchenoweth
Having developed a Nagios XI environment in QA, I would like to most easily copy it into two new production servers (one active/one inactive). All three environments use a different remote database. It looks like, based on the forum thread below, I can backup QA and then restore it to to the two new environments and the database settings will be undisturbed. In this scenario, would I need to save/restore the ndo2db settings?

http://support.nagios.com/forum/viewtop ... 16&t=32889'

Thanks!

Re: restoreXI from one server, restore to anther to copy env

Posted: Thu May 14, 2015 4:18 pm
by ssax
Restoring will replace the DB settings with the one you backed up so you would want to back up those files and copy them back over once the restore is complete.

You might want to edit the restore_xi.sh script and stop the services from starting at the bottom of it if you do not want it to connect to the other DB at all. Just be aware that it will revert your changes to the script during the restore.

Copy the proper files over and then start the services.