How to backup only the essential

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

How to backup only the essential

Post by Frédéric GRANAT »

Hi,

Currently I use backup_xi.sh script to backup my nagiosxi server.
I've got a problem of disk space.

Here's the content of /store/backups/nagiosxi :

Code: Select all

drwxr-xr-x  4 root   root       4096 Apr 12 21:05 1460487602
drwxr-xr-x  4 root   root       4096 Apr 13 21:05 1460574001
drwxr-xr-x  4 root   root       4096 Apr 14 21:05 1460660401
drwxr-xr-x  4 root   root       4096 Apr 15 21:05 1460746801
drwxr-xr-x  4 root   root       4096 Apr 16 21:04 1460833202
drwxr-xr-x  4 root   root       4096 Apr 17 21:04 1460919602
drwxr-xr-x  4 root   root       4096 Apr 18 21:05 1461006002
drwxr-xr-x  4 root   root       4096 Apr 19 21:05 1461092401
drwxr-xr-x  4 root   root       4096 Apr 20 21:05 1461178801
drwxr-xr-x  4 root   root       4096 Apr 21 21:05 1461265201
drwxr-xr-x  4 root   root       4096 Apr 22 21:06 1461351601
drwxr-xr-x  4 root   root       4096 Apr 23 21:05 1461438002
drwxr-xr-x  4 root   root       4096 Apr 24 21:07 1461524401
drwxr-xr-x  4 root   root       4096 Apr 25 21:05 1461610801
drwxr-xr-x  4 root   root       4096 Apr 26 21:05 1461697202
drwxr-xr-x  4 root   root       4096 Apr 27 21:05 1461783602
drwxr-xr-x  4 root   root       4096 Apr 28 21:05 1461870002
drwxr-xr-x  4 root   root       4096 Apr 29 21:05 1461956402
drwxr-xr-x  4 root   root       4096 Apr 30 21:04 1462042802
drwxr-xr-x  4 root   root       4096 May  1 21:04 1462129202
drwxr-xr-x  2 nagios nagios     4096 Apr 11 21:07 conf.d
-rwxr-xr-x  1 nagios nagios      742 Apr 11 21:07 mrtg.cfg
-rw-r--r--  1 nagios nagios  5440567 Apr 11 21:07 mrtg.tar.gz
drwxr-xr-x  2 nagios nagios     4096 Apr 11 21:07 mysql
-rw-r--r--  1 nagios nagios      194 Apr 11 21:00 nagiosql-etc.tar.gz
-rw-r--r--  1 nagios nagios   901204 Apr 11 21:00 nagiosql.tar.gz
-rw-r--r--  1 nagios nagios 43285168 Apr 11 21:07 nagiosxi.tar.gz
+ nagios.tar.gz (that I removed to free space).
Nagiosxi is installed on a virtual machine (backup every month), so every day, we only need to backup configuration.
According to me backing up *.cfg files and mysql dump would be enough.
What should I backup in order I can restore nagiosxi from a fresh install ?
What would be the simpliest way to do it ?

Rgds,

Frederic.
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: How to backup only the essential

Post by bwallace »

Have you reviewed this doc?
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

I would just stick to running the back-up script as you've been doing since it will enable you to restore to a complete system. Sure, one can be selective about what is backed up, but that really increases the risk of conflicts upon or after restoring. If you're concerned about space on the Nagios XI server, then have you considered configuring XI to send your System Backups via FTP to another server? Admin > System Backups > Scheduled Backups
Be sure to check out the Knowledgebase for helpful articles and solutions!
Frédéric GRANAT
Posts: 445
Joined: Mon Nov 19, 2012 11:36 am

Re: How to backup only the essential

Post by Frédéric GRANAT »

Thanks,
You can close the post.

Rgds,

Frederic
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: How to backup only the essential

Post by bwallace »

Glad we were able to help. We'll lock this thread now and feel free to open another should you require assistance with anything else.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Locked