Hi all.
I wanted to make a request for a backup script. Preferably something that I can invoke once and send to the background then go about my other technical duties. It'd also be nice if the backup script treated itself like a transaction so any errors would cause it to stop and undo and temporary changes its made.
Additional Thought: It would be supremely ideal if I could upgrade Nagios XI by just clicking an "Upgrade" button in the interface then get an ETA and progress bar.
REQUEST: Backup script
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
REQUEST: Backup script
Last edited by cwscribner on Fri Sep 23, 2011 2:21 pm, edited 1 time in total.
Re: REQUEST: Backup script
There are already backup scripts included with XI found at /usr/local/nagiosxi/scripts/backup_xi.sh & /usr/local/nagiosxi/scripts/restore_xi.sh. They will back up to and restore from the directory /store/backups/nagiosxi. There is some documentation here.
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: REQUEST: Backup script
Just realized my typo. I meant to make a request for a full upgrade script. One that would be invoked once and handle all the backups, service manipulation, downloads, etc.
Re: REQUEST: Backup script
I've whipped up a quick script for this purpose and attached it to this post. It's simple right now, and if a step fails it does not try to undo any damage (although it also won't try to blindly keep continuing even if commands fail).
We can't handle the entire upgrade process from the web interface because it requires root permissions, but I'll look into streamlining the upgrade process with a script like this.
We can't handle the entire upgrade process from the web interface because it requires root permissions, but I'll look into streamlining the upgrade process with a script like this.
You do not have the required permissions to view the files attached to this post.
-
cwscribner
- Posts: 316
- Joined: Thu Mar 31, 2011 9:54 am
- Location: Patten, ME
- Contact:
Re: REQUEST: Backup script
Thanks! Much appreciated.