Open NAC Core BackupΒΆ

As a default configuration, all the openNAC 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.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

For operational purposes, this should be copied by the customer to a backup manager server.