Incorta backup and restore scripts are shell scripts that are intended to perform backup and restore for multi-node installations of Incorta. The scripts are capable of backing up and restoring the following parts of Incorta environment:
Cluster configuration files, which include:
CMC node configuration files which include: cmcData, conf, and incorta directories
Incorta nodes configuration files which include:
Services configuration files which include: incorta and conf directories
NodeAgent configuration files which include: nodeAgent.cfg file
Spark nodes configuration files which include: conf directory
Zookeeper nodes configuration files which include: conf directory
Tenant-related files, which include:
Tenant metadata (tenant export)
Compacted parquet files
Schemas time log files
The scripts were tested on a multi-node environment running CentOS (version 7).
The user has to supply a configuration file to each script (backup script and restore script) to identify the locations of Incorta cluster nodes the scripts will backup or restore, and identify components of the cluster to include in the backup/restore process. The following sub-sections explain the configuration file of each script in detail.
The 'backup.parameters' file contains the following parameters:
backup.parameters file Expand source
You will notice that the restore configuration file contains fewer parameters. This is because all the yes/no parameters in the backup configuration file are converted to interactive command-line prompts that the user has to answer when running the restore script.
The file 'restore.parameters' contains the following parameters that the user needs to specify:
restore.parameters file Expand source
The backup script can be used to back up either cluster configuration files or tenant-related files or both depending on the provided parameters file.
The backup script writes the backups it creates to a backup repository, which is a directory that consists of the following subdirectories:
After reading the parameters file the script does the following:
The restore script can be used to restore either cluster configuration files or tenant-related files or both depending on user inputs.
The script does the following: