Sys Maintenance: ESA Backup and Recovery

Document created by RSA Information Design and Development on Nov 23, 2016Last modified by RSA Information Design and Development on Aug 2, 2017
Version 10Show Document
  • View in full screen mode
 

Administrators can back up and restore configuration and database files for ESA, so that if information is lost or deleted, it can be restored.

Back Up Files

To back up configuration files:

  1. Stop the ESA service using the following command:

    service rsa-esa stop

  2. Create a single tar.bz2 of all the subdirectories except the sub-directories logs, db, bin, and lib under /opt/rsa/esa.

    tar -C / --exclude=/opt/rsa/esa/logs --exclude=/opt/rsa/esa/db --exclude=/opt/rsa/esa/bin --exclude=/opt/rsa/esa/lib --exclude=/opt/rsa/esa/hs_err_pid*.log --exclude=/opt/rsa/esa/wrapper.log --atime-preserve --recursion -cvphjf esa.tar.bz2 /opt/rsa/esa

To back up Puppet and RabbitMQ files:

  1. Create a tar.bz2 file of the Puppet and RabbitMQ files:
    tar -C / --atime-preserve --recursion -cvpjf /root/puppet-rabbit-backup.tar.bz2 --exclude=/var/lib/puppet/bucket --exclude=/var/lib/puppet/reports --exclude=/var/lib/puppet/lib --exclude=/var/lib/rabbitmq/mnesia /var/lib/puppet /etc/puppet /var/lib/rabbitmq
  2. If you are backing up a system that is still being used, start the ESA service using the following command:
    service rsa-esa start

Restore Files

When you are restoring files that have been backed up, put the files in a consistent place. In this document, we are using the /tmp/ folder as the location for the tar files to be extracted. You can use a different folder if needed.

To restore the configuration files:

  1. Log into the host you intend to restore from a saved backup using SSH.
  2. Stop the ESA service using the following command:
    service rsa-esa stop
  3. Change to the / directory.

    cd /

  4. Copy the necessary tar file using a utility like Secure Copy (SCP) to the host in the /tmp/ folder.
  5. Extract the tar file by using the following command:

    tar -C / -xvpjf /tmp/esa.tar.bz2

  6. Delete the tar file.

    rm /tmp/esa.tar.bz2

Note: The wrapper.conf file under /opt/rsa/esa/conf contains the JAVA class path listing. The contents of this file are relevant for a given ESA RPM. If the backup and restore is across versions, the old file must be discarded, otherwise, it must be preserved.

To restore Puppet and RabbitMQ Files:

  1. Change to the / directory.
    cd /
  2. Copy the tar file puppet-rabbit-backup.tar.bz2, using a utility like Secure Copy (SCP), to the host in the /tmp/ directory.
  3. Extract the tar file by using the following command:
    tar -C / -xvjf /tmp/puppet-rabbit-backup.tar.bz2
  4. Delete the tar file.
    rm /tmp/puppet-rabbit-backup.tar.bz2
  5. Start the ESA service by running the following command:
    service rsa-esa start
You are here
Table of Contents > Sys Maintenance: ESA Backup and Recovery

Attachments

    Outcomes