Page 1 of 1

Changing the path for command line backup?

Posted: Wed Feb 26, 2020 3:57 pm
by TBT
The command line backup script (/usr/local/nagiosxi/scripts/backup_xi.sh) uses a default storage path of /store/backups/nagiosxi/ and I'd like to change this to a NFS mount.

Any issues with modifying line 59 rootdir="/store/backups/nagiosxi", or is there a recommended solution?

Re: Changing the path for command line backup?

Posted: Wed Feb 26, 2020 4:21 pm
by benjaminsmith
Hello @TBT,

Keep in mind that if you modify the backup script, any changes will be lost when you upgrade. You can also set up a local scheduled backup and this will allow you to set a different path.
local-backups.png

Re: Changing the path for command line backup?

Posted: Wed Feb 26, 2020 4:34 pm
by TBT
That is acceptable as I'm currently testing something.

Using the Local scheduled backup, it can only run once daily.

Re: Changing the path for command line backup?

Posted: Wed Feb 26, 2020 4:39 pm
by benjaminsmith
Hi TBT,

Glad that will work. That's correct - daily, weekly or monthly.

Did you have any other questions?