Backing up and rolling back HCL Accelerate

You can roll back a HCL Accelerate to previous version by using the back-up and restore procedure.

About this task

To back up and restore HCL Accelerate complete the following steps:

Procedure

  1. Back up the mongo database.
    Use one mongo database to manage multiple mongo databases which are associated with each service. Then, complete these steps:
    1. Download the mongodump / mongorestore client.

      For example: http://downloads.mongodb.org/linux/mongodb-linux-x86_64-rhel70-4.0.10.tgz

      After the download is finished, extract the file. The mongodump file is available in /opt/mongodb-linux-x86_64-rhel70-4.0.10/bin.

    2. Run the mongodump with host and port values to back up the HCL Accelerate.

      mongodump --host=mongoInstanceAddress --port=27017 --out=/opt/backup/velocity-YYYY-MM-DD

    3. Save the dump file.
    4. Run the mongorestore with the --drop flag to restore the dump file.

      mongorestore --host mongoInstanceAddress --port 27017 --drop /backup/dump

      Note: The mongorestore command can add and replace the existing dump file data but it does not delete the existing dump file data. Use the --drop flag with the mongorestore command to delete the existing dump file data and restore the dump file data.
  2. Back up the environmental variables
    To avoid loss of data, back up the environmental variable values:
    1. Save all deployment environmental variable values.
    2. Restore all deployment environmental variable values.