Skip to main content

Hello everyone,

I've set up a 4-node HA architecture (currently in version 23.04.19) under debian.
I've noticed that the backups don't work at all. Looking at the https://docs.centreon.com/docs/23.04/administration/backup/ doc and the /etc/cron.d/centreon file, nothing is specified. I also looked at the /etc/centreon-gorgone/config.d/cron.d/10-centreon-ha.yaml file and found nothing about this.

Am I the only one with this problem?



Bonjour à tous,

J'ai mis en place une architecture HA 4 nœuds (actuellement en version 23.04.19) sous debian.
j'ai remarqué que les backups ne font pas du tout. En regardant la doc https://docs.centreon.com/docs/23.04/administration/backup/ et le fichier /etc/cron.d/centreon rien n'est renseigné. J'ai regardé aussi du côté du fichier /etc/centreon-gorgone/config.d/cron.d/10-centreon-ha.yaml rien à ce sujet.

Suis-je le seul à avoir ce problème ?

Hello,

There’s no schedule cron for backup with Centreon HA. You can however set up one with the smooth backup script. Here is an example of a cron for a total backup each saturday and incremental the other days :

#ENV
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/bash
############################# Cron for total mariadb backup
30 0 * * 0 root /bin/bash /usr/share/centreon-ha/bin/centreondb-smooth-backup.sh >> /var/log/centreon-backup.log 2>&1

############################# Cron for incremental mariadb backup
30 0 * * 1-6 root /bin/bash //usr/share/centreon-ha/bin/centreondb-smooth-backup.sh -i >> /var/log/centreon-backup.log 2>&1

30 6 * * * root /usr/bin/find /var/cache/centreon/backup/ -not -path '*/\.*' -type f -mtime +8 -exec rm -f \{\} \; >> /var/log/centreon-backup.log 2>&1

 

You need at least 5G of free space in the /var/lib/mysql partition and the /var/cache/backup partition must be at least 60% of the size of /var/lib/mysql.


Reply