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.
To back up and restore HCL Accelerate complete the following steps:
-
Back up the mongo database.
Use one mongo database to manage multiple mongo databases which are associated with each service. Then, complete these steps:
-
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.
-
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
-
Save the dump file.
-
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.
-
-
Back up the environmental variables
To avoid loss of data, back up the environmental variable values:
-
Save all deployment environmental variable values.
-
Restore all deployment environmental variable values.
-