HENGSHI SENSE Rollback Operation Instructions

After upgrading the service, if a problem occurs, you can roll back the service to revert to the previous normal state.

Please note that HENGSHI SENSE currently does not support downgrade operations, and rollback operations will not preserve modifications made after the upgrade.

The specific rollback operation steps are as follows:

  1. Stop the service
bin/hengshi-sense-bin stop all
  1. Back up the current service contents
mkdir -p backup/current/
cp -r bin conf lib pg_data local_data temp_data backup/current/
rm -rf bin conf lib pg_data local_data temp_data 
  1. Unzip the most recent backup archive in the backup directory, making sure that the time is appropriate for your needs
# View the backup directory
ls backup/
hengshi-20181127172943.tgz
# Select a backup archive to roll back
tar xzf hengshi-20181127172943.tgz
# View the contents of the archive
cd hengshi-20181127172943
ls
bin  conf  data  lib
# Roll back the contents
mv bin conf lib ../
mv data/* ../
  1. Start the service
bin/hengshi-sense-bin start all