Humio has a built-in backup facility. It only requires a separate directory for Humio to write to, preferably on another disk or network drive from the data directory. When configured, Humio keeps a full backup of the current state in this directory.
A Humio node can to start with an no data and restore the previous state from such a backup.
The files written on the backup drive are encrypted using a secret provided in the configuration of Humio to allow storing the backup on e.g. a network drive where others may have read access.
Humio is designed to support other strategies like e.g. Amazon S3 Backup. You can do backup using any backup software that is able to back up all the files in the Humio data directory. Note that the software need to support “sparse files” to be efficient.
You can back up your Humio installation by adding a special mounted directory when you run the Docker container. Humio writes its backup files to this directory.
We recommend creating the backup directory on a different disk from the main Humio data directory. Make the directory created a mount point for a network drive or other similar separation form the main data drive.
Humio encrypts all backups with a secret key that you provide. This means that you can safely
store backups on an unencrypted disk, or send them over the Internet.
Keep the secret key safe and store it in another place. You cannot recover the backup if you lose access to it!
If you lose the secret, delete all the files in the backup, or provide a new location to backup to, and start over. Humio will then write a fresh backup.
/humio-backups-on-host) to the
/backupdirectory in the container:
Humio will start backing up data to the specified directory.
The procedure is mostly the same. Instead of mounting the directory using “-v”, you specify the location using “BACKUP_DIR”. A full example configuration is then:
BACKUP_NAME=humio-backup BACKUP_KEY=mysecretkey-myhost-+R+q(AB9QG86xZMCKGyj BACKUP_DIR=/mnt/my-net-server/humio-backup01
Humio can restore all events that were stored in segment files for a Humio node
humio-data dir from the backup.
It can also help a node claim the nodeID of a lost node in a cluster.
The node is lost, but you have reinstalled the OS on the existing
hardware, or perhaps found a spare server that should now take on the
role of the lost Humio node. To do so you should create the
humio-data and place a copy of the uuid file from the lost node -
this file is present in the folder
copy this file to:
Humio restores missing segment files when it discovers they are missing, and are present in the backup folder.