cron.d backup vs scheduled backup in the GUI
Posted: Thu Jan 20, 2022 5:14 pm
In preparation of a Nagios XI migration, we've built 8 new servers with a fresh install of XI. They have been sitting a few days and today we noticed the 100GB disk on each server was 100% full. Upon investigation we discovered /store/backups/mysql to be the culprit, more specifically a cron job was creating backups of the Databases.
This raises a few questions....
1. Should this cron be enabled by default?
2. If cron is left enabled, how does this affect the Scheduled Backups in the GUI once enabled?
3. If Scheduled Backups in the GUI is enabled does it comment out the cron preventing double backup?
4. Are Scheduled Backups complete, eg: all databases and associated nagios directories?
Code: Select all
# /etc/cron.d/nagiosxi: crontab fragment for nagiosxi
# Backup MySQL & PostgreSQL Databases
0 7 * * * root /root/scripts/automysqlbackup
0 7 * * * root /root/scripts/autopostgresqlbackup > /dev/null 2>&11. Should this cron be enabled by default?
2. If cron is left enabled, how does this affect the Scheduled Backups in the GUI once enabled?
3. If Scheduled Backups in the GUI is enabled does it comment out the cron preventing double backup?
4. Are Scheduled Backups complete, eg: all databases and associated nagios directories?