NagiosXI: 2014R2.0: Scheduled Backups

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: NagiosXI: 2014R2.0: Scheduled Backups

Post by questrad »

tgriep wrote:We found out from our developer on how the old backups are removed during scheduled backups.

When the backup runs, it will delete only one of the latest files, not all of them that are over the limit.
If you had your backup limit set to 140 and then changed it to 90, it will not delete the 50 oldest backups at the next time it is run, only the oldest.

If you go in to Local Backup Archives and manually delete the older backups to be less that 90, it will start to work for you.

Post back if that works for you.
I think it needs to delete the first early created backup files, not the latest files.
I will make necessary changes in our PreProd environment and test it
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: NagiosXI: 2014R2.0: Scheduled Backups

Post by jomann »

The backup_xi.sh script allows you to use a -n or --name= tag to specify the name of the tarball it creates (running backup_xi.sh --help will list everything you can use).

As far as us deleting the backups... we could, but we'd like to do the least amount of deletion possible to not accidentally delete someones files unnecessarily. Basically, if someone moved down to less backups they will just need to manually delete the extra backups.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
questrad
Posts: 160
Joined: Wed Mar 21, 2012 3:08 pm
Location: Toronto
Contact:

Re: NagiosXI: 2014R2.0: Scheduled Backups

Post by questrad »

jomann wrote:The backup_xi.sh script allows you to use a -n or --name= tag to specify the name of the tarball it creates (running backup_xi.sh --help will list everything you can use).
It is for manual, but if I want use the same options in Scheduled Backup component - for now it is not possible to change the naming.

Thanks for suggestions.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI: 2014R2.0: Scheduled Backups

Post by lmiltchev »

It is for manual, but if I want use the same options in Scheduled Backup component - for now it is not possible to change the naming.
This seems like a good "feature request" candidate. You can post a feature request on our public tracker here:
http://tracker.nagios.com
or we can post one for you internally (if you want us to). Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: NagiosXI: 2014R2.0: Scheduled Backups

Post by sreinhardt »

Correct, those options are not available from the webui, initially to ensure our normal naming scheme will continue to operate properly. If renaming the scheduled backups is something you are interested in, I would suggest putting in a feature request on tracker.nagios.com. If you link to it back here, I can create an internal one as well. We keep the external one, so that you can keep up to date on changes that might be made regarding it.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked