Page 1 of 2
Configuration Backups (On Demand)
Posted: Fri May 15, 2015 7:38 am
by sharding
config backups are taken on schedule but how do I make one on demand ? Due to duplicate generic (from core) configs on our system I have to fix them all by hand, often this breaks the configs due to all these duplicates, so I want to make a config backup before to make roll backs easier to do.
Thanks muchly
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 7:53 am
by lmiltchev
You can backup your system by running the "backup_xi.sh" script from the CLI. Please, review the document below:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
You can also backup XI in the GUI - go to Admin->System Backups->Local Backup Archives, and click on "Create Backup".
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 8:24 am
by sharding
ok I am talking about the configuration snapshots in the CCM manager (see attached screen shot), when the config breaks you have the option of restoring a working one and all is good again, I CANNOT SEE an on demand create snapshot button.
If there is one it is not on this screen, which would make sense
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 9:11 am
by jdalrymple
They are automatically created whenever you make a change whether you like it or not, there is no use in creating one on-demand is it would just be an exact duplicate of the next automatically created one.
Perhaps you are seeking an option such as archive (the right-most button) where you can keep an existing snapshot around forever? Note that you can rename archived snapshots so that you know what/when they're from.
If you're looking to have a "now" copy to archive, the only solution that comes to mind is just opening any object, and clicking save without making any changes and apply config. Then the top-most snapshot will be your running configuration.
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 9:25 am
by sharding
The reason I asked is it is not always made before each change, I have often had to go check with a view to restore and the snapshot is not always there. Again hence why I was asking.
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 9:33 am
by jdalrymple
sharding wrote:The reason I asked is it is not always made before each change
So it's broken? It should be getting created at each change (done through the UI). If it's broken that's a different issue altogether.
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 9:53 am
by sharding
as I had mentioned it does not always create a snapshot, often does but I don't check when the config still works,many times I go to restore when it's broken and there is no snapshot, again not every time and I could not tell you exactly what release.
Do you want me to open a e-mail support case if XI 2014 R2.7 does this ?
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 9:55 am
by jdalrymple
sharding wrote:Do you want me to open a e-mail support case if XI 2014 R2.7 does this ?
No matter what the version we'll probably want a support case opened. Can you reproduce the error on command so that we can capture the output of the reconfigure script?
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 10:10 am
by sharding
I do changes all the time so I can advise when it happens, is there a step I should do when it does to send in extra info ?
Re: Configuration Backups (On Demand)
Posted: Fri May 15, 2015 10:14 am
by jdalrymple
So the deal is when you run apply config there is a script that runs under the hood. We need to see the output of that script to be able to debug why the snapshot wouldn't be getting created. For that reason it would be ideal if you could identify the circumstances that exist when it doesn't work properly so that we can recreate the problem on demand.
Otherwise you'd have to run the reconfigure script by hand instead of clicking apply config each time in order to capture the "1 time" it doesn't work right.