Use this scenario if the update is performed on the same server where the system is already running. |
While in the ~/backup folder, run the following commands:
wget https://archive.eltex-co.ru/evi-raw/evi-1.4.0/db_migration-1.3.0-1.4.0.zip unzip db_migration-1.3.0-1.4.0.zip cd db_migration-1.3.0-1.4.0 |
sudo apt purge evi-core-web evi-core evi-scud evi-live evi-archive evi-analyzer nginx |
Perform the necessary preliminary steps as described in the Preparation for installation section.
Since the PostgreSQL database is already installed, the next step is to install ClickHouse: see the Installing the database section, item ClickHouse database.
sudo bash migrate.sh <host> <user> <password> <psql_db_name_from> <psql_db_name_to> <psql_port> <ch_def_user_password> <ch_db_name> |
sudo bash migrate.sh localhost core core core core 5432 core core |
After successfully executing the migration script, the message Restoring DB done <3 will appear in the console.
Then proceed to the Installing and configuring EVI services after migration section.