Linux
HES deployment - Linux
To update the HES server for Linux, you have to:
Disable the Data Protection on the HES.
Update the server using the following instruction.
Enable Data Protection again.
Option 1 (using a script)
To update the server, you can use the update.sh
script, which is located in the HES directory (/opt/HES
default). You can run it either manually or through the web interface (by clicking on the server version). If an update is available, you will be prompted to update the server using a script. If you have changed the location of the server, the name of the service to run, you can manually update the necessary parameters in the script.
The script has the following command line parameters:
--dir - path to HES bin directory. Default /opt/HES
--service - name of HES-service. Default HES
--url - url to download the update file. Default, url will be taken from https://update.hideez.com/hes/build.json
But you can override these parameters. For example, to update HES offline, from the file "linux_x64_latest.tar.gz", located in the user's home directory, you can run the script as follows:
/opt/HES/update.sh --url file://~/linux_x64_latest.tar.gz
or, if the update is on another of your resources:
update.ps1 --url https://<your_resource/linux_x64_latest.tar.gz
Option 2 (without using a script)
2.1. Stopping HES Service
2.2. Backup the HES binaries and the configuration file
2.3. Backup the Database
For MySQL database:
The following command will create a copy (dump) of the database hesdb
in file hesdb.sql
in /opt/HES.old
directory:
change <MySQL_root_password>
with your real password.
For Microsoft SQL Server database:
The following command will create a backup of the database hesdb
in file hesdb.bak
in /var/opt/mssql/data
directory:
2.4. Download a new version of the HES
2.5. Restore the configuration file
2.6. Restart the HES and check its status
After checking that the update was successful and everything works fine, you can delete copies of the database and server:
If something goes wrong, you can restore the HES server using the following commands
Restore the folder with previous HES version:
Restore the Database:
For MySQL database:
change <MySQL_root_password>
with your real password.
For Microsoft SQL Server database:
then restart HES:
As an alternative, you can make updates via a web interface on your HES server
Open the HES server.
Open section Settings → Parameters on the sidebar → Server Update
Type address in the field Service Name (by default “HES.service”)
In the section with available updates, Click Update
Note: that way of updating HES available only for servers deployed on Linux
Last updated