Page 1 of 1

Local Backup Archives question

Posted: Wed Apr 23, 2025 12:38 pm
by DBAFOX
Hi ,

We are using Nagios xi 2024 on RHEL 9

I know we change set the location of the daily backup in the console using ADMIN --> Schedule Backup --> Local [Tab]
(Attached graphic #1 )
you can tell it how long you keep the daily backup cycle and where to put it (our is on /app1/backups/nagiosxi/ 30 days)
And that the end of your backup cycle -- the have a different location for the long-term backup
You can see that in : ADMIN --> Local Backup Archives (attached graphic #2 )
you see that all the long term backups go to /store/backups/nagiosxi

When we setup our Nagios server we didn't know that it used it's own filesystem (so currently it exists as a directory off root filesystem (aka / )
We had a filesystem we wanted to put that our daily and long term backup on (different name)

Question -- is there a way to change that long term local off /store/backups/nagiosxi ?
or is that a bad idea?

Sincerely
DBAFox

Re: Local Backup Archives question

Posted: Wed Apr 23, 2025 1:37 pm
by jsimon
Hi @DBAFOX,

Feel free to change this location as suits your requirements. You may want to move existing backups yourself from the old location to the new one so that all of your backups are stored in one place for your convenience.

One note on this however is that you should avoid moving the backups to a directory that is being backed up by Nagios! This avoids backing up your backups, causing a rapid increase in backup size.

Re: Local Backup Archives question

Posted: Thu Apr 24, 2025 10:39 am
by DBAFOX
Thanks you -- I know the place to change the local daily backups ( in Local Settings)

but is there a way to change the location of the local backup archive location (aka end of cycle )

I do not see a way to change the location of the local backup archive location
(ie if you have backup limit to 7, they keep the 7th in a different location) , the local backup archive location

local backup archive are moved from local to : /store/backups/nagiosxi

I just don't see a way of doing that unless I do it manually with an os script

Sincerely,
dbafox

Re: Local Backup Archives question

Posted: Fri Apr 25, 2025 10:41 am
by bbahn
Hello @DBAFOX,

Unfortunately, there are a number of places throughout XI where /store/backups/nagiosxi/ is hard-coded. If your goal is to change the location, I'd recommend using a symlink linking that folder to the desired location as changing all the places in XI that reference that folder could be messy and complicated to get right. I will bump the weight of the issue we have internally for this. There is another thread here that has been marked as RESOLVED, so maybe you will find this helpful: viewtopic.php?p=359009#p359009