Nagios XI back-ups advice
Posted: Fri Sep 05, 2014 4:57 am
We have recently enabled Nagios backups. But for some reason daily mysql backups under nagios dir are taking lot of space and are not zipped. Example below :
path : /store/backups/mysql/daily/nagios
[root@NagiosXI nagios]# ls -l
total 5533120
-rw-r--r-- 1 root root 85077832 Dec 1 2013 nagios_2013-12-01_07h00m.Sunday.sql.gz
-rw-r--r-- 1 root root 89799234 Dec 2 2013 nagios_2013-12-02_07h00m.Monday.sql.gz
-rw-r--r-- 1 root root 91895116 Dec 3 2013 nagios_2013-12-03_07h00m.Tuesday.sql.gz
-rw-r--r-- 1 root root 91817287 Dec 4 2013 nagios_2013-12-04_07h00m.Wednesday.sql.gz
-rw-r--r-- 1 root root 5307314176 Sep 5 07:03 nagios_2014-09-05_07h00m.Friday.sql
As you can see the latest file(nagios_2014-09-05_07h00m.Friday.sql) generated is ~5.0G. Anyway we can have the daily file that is being generated zipped by default.
In /root/scripts/automysqlbackup script, COMP=gzip, but still the daily file is not zipped.
-- Anil
path : /store/backups/mysql/daily/nagios
[root@NagiosXI nagios]# ls -l
total 5533120
-rw-r--r-- 1 root root 85077832 Dec 1 2013 nagios_2013-12-01_07h00m.Sunday.sql.gz
-rw-r--r-- 1 root root 89799234 Dec 2 2013 nagios_2013-12-02_07h00m.Monday.sql.gz
-rw-r--r-- 1 root root 91895116 Dec 3 2013 nagios_2013-12-03_07h00m.Tuesday.sql.gz
-rw-r--r-- 1 root root 91817287 Dec 4 2013 nagios_2013-12-04_07h00m.Wednesday.sql.gz
-rw-r--r-- 1 root root 5307314176 Sep 5 07:03 nagios_2014-09-05_07h00m.Friday.sql
As you can see the latest file(nagios_2014-09-05_07h00m.Friday.sql) generated is ~5.0G. Anyway we can have the daily file that is being generated zipped by default.
In /root/scripts/automysqlbackup script, COMP=gzip, but still the daily file is not zipped.
-- Anil