Page 1 of 1
Post update restore script request
Posted: Fri Oct 26, 2018 3:11 pm
by benhank
Hey all!
Now we all know that sometimes upgrading to a newer version of nagios might cause problems do to no fault on anyone's part.
When something goes wrong sometimes one needs to downgrade to the version that was upgraded.
Can you guys add a downgrade script or option in future upgrades?
you don't wanna know how I know this, but i know a guy who upgraded to 5.5.5 and tried to go back to version 5.4.12 and well yeah if there is a way to make downgrading possible, that would be awesome. =D
thanks fellas either way!
Re: Post update restore script request
Posted: Fri Oct 26, 2018 3:17 pm
by scottwilkerson
Ben,
I always look forward to your Friday afternoon posts
Our
upgrade manual right on page 1 states this:
Backup
It is recommended to backup your existing Nagios XI installation before attempting the upgrade process.
Please refer to the following documentation:
Backing Up and Restoring Nagios XI
If you just decided to wing it and upgrade using the Web UI, a backup is automatically made on your behalf to roll back to.
Re: Post update restore script request
Posted: Fri Oct 26, 2018 3:20 pm
by scottwilkerson
If in fact you are in a bind and don't have these, you can do the following and it will get you close:
Code: Select all
cd /tmp
rm -rf nagiosxi xi*
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.4.12.tar.gz
tar xzf xi*.tar.gz
cd /tmp/nagiosxi
./upgrade
cd subcomponents/nagioscore
./upgrade
Again, a backup first would be a good idea......Always a good idea
Re: Post update restore script request
Posted: Mon Oct 29, 2018 8:45 am
by benhank
Ah but that's the interesting part, I DID have a backup.Man i screw my stuff up so much i got backups of backups which are backed up on backup servers, which have backups of them lol.
But I think that the changes that are introduced by 5.5.5 make restoring to 5.4.12 fail. that's why I had to do a full reinstall. I tried the upgrade on two separate servers and the restore failed on both. If you want I can redo the upgrade and the retry the restore and show you what happened.
Re: Post update restore script request
Posted: Mon Oct 29, 2018 9:04 am
by scottwilkerson
benhank wrote:Ah but that's the interesting part, I DID have a backup.Man i screw my stuff up so much i got backups of backups which are backed up on backup servers, which have backups of them lol.
But I think that the changes that are introduced by 5.5.5 make restoring to 5.4.12 fail. that's why I had to do a full reinstall. I tried the upgrade on two separate servers and the restore failed on both. If you want I can redo the upgrade and the retry the restore and show you what happened.
Do you remember why the restore failed?
Re: Post update restore script request
Posted: Mon Oct 29, 2018 9:09 am
by benhank
No, I redo the upgrade and restore and if it fails Ill post the results
Re: Post update restore script request
Posted: Mon Oct 29, 2018 10:56 am
by scottwilkerson
benhank wrote:No, I redo the upgrade and restore and if it fails Ill post the results
Thanks.