Backing up ElastiCenter configurations

Backing up ElastiCenter configurations

How to backup and restore ElastiCenter configuration

By default CloudByte schedules a backup everyday. You can modify the settings using the following options in Global Settings:

  • devman.backup.files.retain
  • devman.backup.path
  • devman.backup.scheduling.interval.

But, in the case you need to do a manual backup, follow the steps:

Backing up

  1. In the ElastiCenter server, at command prompt, run the following:
    cd /usr/local/cb/bin/
  2. Run the following command to create backup file:
    ./backup.sh
    . The backup file is created in the /var/devman/backups (unless you modify the path). The following is a sample file name: backup_Jul26_1374815679.tar.bz2.
  3. Copy the file and store it elsewhere.

Restoring

  1. Copy the backed up TAR file to a location on ElastiCenter, for example /var.
  2. Go to the directory /usr/local/cb/bin and then run the following command:
    ./restore.sh <path of backedup file>
    . For example
     ./restore.sh /var/backup_Jul26_1374815679.tar.bz2
    .

The configuration is restored.

How to backup and restore Node configuration

Backing up

By default, CloudByte schedules a daily backup of the location /cf/conf to /var/backup. CloudByte recommends you to move this backup daily to a safe location. Either schedule a cron job or manually copy the files from the conf directory.

You can backup configurations manually by doing the following:

  1. cp -r /cf/conf .
  2. cp /usr/local/agent/cb* .

Restoring

  1. Reinstall the Node with the same configurations (for example, same IP address, Hostname, and ElastiCenter details) as in the previous installation.
  2. Copy the following backed up files to the reinstalled Node:
    • config.xml file to the location /cf/conf/config.xml
    • haconfig.xml file to the location /cf/conf/haconfig.xml
    • ipmi.conf file to the location /usr/local/agent/listener/ipmi.conf
    • cbc_node_id file to the location /usr/local/agent/cbc_node_id
    • cbd_node_id file to the location /usr/local/agent/cbd_node_id
  3. After copying all the files, reboot the Node.