Docker
HES update - Docker
Create folder for backup
sudo mkdir /opt/HES.oldcd /opt/HES/
sudo sh -c "docker exec hes-mysql /usr/bin/mysqldump -u root --password=password hesdb > /opt/HES.old/hesdb.sql"cd /opt/HES/
sudo docker exec -it hes-mssql /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P "C00ll_Passwrd_here" -Q "BACKUP DATABASE [hesdb] TO DISK = N'/var/opt/mssql/data/hesdb.bak' WITH NOFORMAT, NOINIT, NAME = 'db-full', SKIP, NOREWIND, NOUNLOAD, STATS = 10"Stop containers:
Remove image of HES:
If something goes wrong, you can restore the HES server using the following commands:
After checking that the update was successful and everything works fine, you can delete copies of the database and server:
Last updated