I'm writing a backup script that when run will call the /usr/local/nagiosxi/scripts/backup_xi.sh backup script and then will copy the resulting .zip file (e.g /store/backups/nagiosxi/1279411912.zip) to a remote server. However in the Backup & Restore Document (http://assets.nagios.com/downloads/nagi ... ing_XI.pdf) it recommends copying all of the directories found under /store/backups to a remote server. The directories are: mysql nagiosxi postgresql
I created a backup file using the backup_xi.sh script and then deleted some services and hosts from my system, and then ran the restore script. Everything appeared to restore fine, including the sql databases.
So my question boils down to this, why would I want to copy the entire /store/backups directory when only the .zip files found under /store/backups/nagiosxi/ appear to be needed to do a full restore? What am I missing?
Thanks for the help.
Backup Directory Structure
Re: Backup Directory Structure
The short answer is that you only really need the zip files.
The other directories in /store/backup contain automatic backups of the MySQL and PostgresQL databases. The zip files contain manual backups of the full Nagios XI installation.
The other directories in /store/backup contain automatic backups of the MySQL and PostgresQL databases. The zip files contain manual backups of the full Nagios XI installation.
Re: Backup Directory Structure
Thanks that's all I needed. That makes writing the custom backup script very simple.
Re: Backup Directory Structure
Hi,axj0187 wrote:Thanks that's all I needed. That makes writing the custom backup script very simple.
Have NagiosXI and I wont to know if is possible disable automatic backups from NagiosXI, because I dont need daily backups.
Thanks.