Backup of a Centreon central server

Centreon Enterprise Server Essentials is delivered with an automated backup script. This script is executed each night with a cron job defined in: /etc/cron.d/centreon-backup

Check if the backup script is installed

Enter the following command to verify if the backup script package is installed:

# rpm -qa centreon-backup

If the previous command does not return any value, enter the following to install the package:

# yum install centreon-backup

Backup script is now installed.

How works the backup script on central server

The backup script is executed on a daily basis with a cron job located in /etc/cron.d/centreon-backup:

# Centreon backup system

0 3 * * * root /usr/sbin/ --backup-type central --level full --log-file /var/log/centreon/centreon-backup.log >> /var/log/centreon/centreon-backup-errors.log 2>&1
15 2 * * * root /usr/sbin/ --backup-type poller --poller all --level full --log-file /var/log/centreon/centreon-backup.log >> /var/log/centreon/centreon-backup-errors.log 2>&1
15 3 * * * root /usr/sbin/ --backup-type databases --level full --log-file /var/log/centreon/centreon-backup.log >> /var/log/centreon/centreon-backup-errors.log 2>&1

By default, backups are located in /var/backup To modify this folder, update the $BACKUP_DIR value in the backup script configuration file located here: /etc/centreon/

Three kinds of backups are executed each night on Centreon central server:

  • “central”: backup Centreon files, format: aaaa-mm-jj-Central.tar.gz

  • “poller”: backup all pollers Nagios files, format: aaaa-mm-jj-Monitoring-Engine-pollername.tar.gz

  • “databases”: backup Centreon databases (centreon, centreon_storage, centreon_status), format:
    • yyyy-mm-dd-centreon.sql.gz
    • yyyy-mm-dd-centreon_storage.sql.gz
    • yyyy-mm-dd-centreon_status.sql.gz

Backups periodicity

  • Backup periodicity: daily
  • Backups rotation: 7 days

To modify this value, update $BACKUP_MAX_AGE in the backup script configuration file located here: /etc/centreon/


We advice to export backups to another ressource in order to secure them.