Backup Directory Structure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axj0187
Posts: 14
Joined: Thu Jul 07, 2011 10:47 am

Backup Directory Structure

Post by axj0187 »

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.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: Backup Directory Structure

Post by agriffin »

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.
axj0187
Posts: 14
Joined: Thu Jul 07, 2011 10:47 am

Re: Backup Directory Structure

Post by axj0187 »

Thanks that's all I needed. That makes writing the custom backup script very simple.
Morse
Posts: 3
Joined: Fri Aug 12, 2011 3:44 am

Re: Backup Directory Structure

Post by Morse »

axj0187 wrote:Thanks that's all I needed. That makes writing the custom backup script very simple.
Hi,

Have NagiosXI and I wont to know if is possible disable automatic backups from NagiosXI, because I dont need daily backups.

Thanks.
Locked