Page 1 of 1
Does the NXI backup file contain the version?
Posted: Fri Feb 18, 2022 11:00 am
by gormank
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?
Re: Does the NXI backup file contain the version?
Posted: Mon Feb 21, 2022 2:15 pm
by ssax
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
Code: Select all
grep -Po "install_version','[\d\.]+'" mysql/nagiosxi.sql
OR:
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?
Posted: Mon Feb 21, 2022 3:43 pm
by gormank
Thanks, that's what I was looking for.
Re: Does the NXI backup file contain the version?
Posted: Tue Feb 22, 2022 12:51 pm
by ssax
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.