5.8.1. ON Core Backup

As a default configuration, all the ON Core servers have a backup script that is set to be executed everyday at 23:26. Below, we have the snippet of the cron configuration.

[root@opennac ~]# cat /etc/cron.d/opennac-backup
26 23 * * * root /usr/share/opennac/utils/backup/opennac_backup.sh > /dev/null 2>&1

As a default behavior, the generated backup tarballs are sent to /backup:

[root@opennac ~]# ls -l /backup/
-rw------- 1 root root 161149892 Feb 20 23:26 opennac-opennac.tpl-20180220_232601.tgz
-rw------- 1 root root 161098842 Feb 21 23:26 opennac-opennac.tpl-20180221_232601.tgz
-rw------- 1 root root 159619610 Feb 22 23:26 opennac-opennac.tpl-20180222_232601.tgz
-rw------- 1 root root 159843893 Feb 23 23:26 opennac-opennac.tpl-20180223_232601.tgz
-rw------- 1 root root 159917033 Feb 24 23:26 opennac-opennac.tpl-20180224_232601.tgz
-rw------- 1 root root 160047804 Feb 25 23:26 opennac-opennac.tpl-20180225_232601.tgz
-rw------- 1 root root 160150451 Feb 26 23:26 opennac-opennac.tpl-20180226_232601.tgz

The name is composed by the following formula:

opennac-$fqdn_hostname-$year$month$day-$hour$minute$second.tgz

Each of the backups is composed of:
  • /etc/ directory

  • /usr/ directory

  • /var/ directory

  • MySQL database dump

Note

For operational purposes, the customer must copy it to a backup manager server.