I'm looking at some old backup zipped tar files and need to know what version of NXI was backed up. This is so I can install the same version and then restore the backup.
Can the backed up version of NXI be determined from the files in the backup?
Does the NXI backup file contain the version?
Re: Does the NXI backup file contain the version?
The mysql/nagiosxi.sql MySQL dump should contain it, an alternative would be the /usr/local/nagiosxi/var/xi-sys.cfg in the nagiosxi.tar.gz file.
You could extract it, cd into the extracted directory and then run one of these:
- I would trust this one more as it's from the DB
OR:
You could extract it, cd into the extracted directory and then run one of these:
- I would trust this one more as it's from the DB
Code: Select all
grep -Po "install_version','[\d\.]+'" mysql/nagiosxi.sql
Code: Select all
tar -axf nagiosxi.tar.gz usr/local/nagiosxi/var/xi-sys.cfg -O | grep xiver
Re: Does the NXI backup file contain the version?
Thanks, that's what I was looking for.
Re: Does the NXI backup file contain the version?
No problem, glad to help! I have submit a feature-request to development requesting they add the version in the root of to the backup file for easier identification:
FR: XI - Add XI version to the root of the backup file for easy identification when extracting
Let us know when we're okay to lock this up and mark it as resolved.
FR: XI - Add XI version to the root of the backup file for easy identification when extracting
Let us know when we're okay to lock this up and mark it as resolved.