Backup and Recovery
Configuration backup, disaster recovery procedures, and capacity planning.
This section covers configuration backup using the built-in backup script. For Energylogserver data snapshot backup and disaster recovery procedures, see Backup and Disaster Recovery.
Configuration Backup
Backing up
The backup bash script is located on the hosts with Data Node in the location: /usr/share/logserver/utils/configuration-backup.sh.
The script is responsible for backing up the basic data in the Logserver system (these data are the system indexes found in logserver of those starting with a dot ‘.’ in the name), the configuration of the entire cluster, the set of templates used in the cluster and all the components.
These components include the Network Probe configuration located in /etc/logserver-probe and the Logserver GUI configuration located in /etc/logserver-gui.
All data is stored in the /tmp folder and then packaged using the /usr/bin/tar utility to tar.gz format with the exact date and time of execution in the target location, then the files from /tmp are deleted.
crontab
It is recommended to configure crontab.
Before executing the following commands, you need to create a crontab file, set the path to backup, and direct them there.
In the below example, the task was configured on hosts with the Data Node module on the root.
# crontab -l #Printing the Crontab file for the currently logged in user
0 1 * * * /bin/bash /usr/share/logserver/utils/configuration-backup.sh
The client-node host saves the backup in the /archive/configuration-backup/ folder.
Receiver-node hosts save the backup in the /root/backup/ folder.
Restoration from backup
Backup and Restore guide is available under this link