Page 2 of 2

Re: NagiosXI: 2014R2.0: Scheduled Backups

Posted: Sun Dec 07, 2014 1:56 am
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

Re: NagiosXI: 2014R2.0: Scheduled Backups

Posted: Mon Dec 08, 2014 10:15 am
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.

Re: NagiosXI: 2014R2.0: Scheduled Backups

Posted: Mon Dec 08, 2014 12:37 pm
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.

Re: NagiosXI: 2014R2.0: Scheduled Backups

Posted: Mon Dec 08, 2014 5:22 pm
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!

Re: NagiosXI: 2014R2.0: Scheduled Backups

Posted: Mon Dec 08, 2014 5:24 pm
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.