Configuration and administration [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:dpi_components:dpiui:configuration [2026/05/06 14:41] elena.krasnobryzhen:dpi:dpi_components:dpiui:configuration [2026/05/07 14:42] (current) – [Migrating the GUI from CentOS 7 to VEOS] elena.krasnobryzh
Line 105: Line 105:
 # Stopping the cron system service # Stopping the cron system service
 sudo service crond stop</code> sudo service crond stop</code>
-  - Export the dpiui2 database from the **old** machine using the mysqldump utility.\\ :!: **Make sure you have enough free disk space beforehand!** <code bash>mysqldump -uroot -pvasexperts  dpiui2 > dpiui2.sql</code> +  - Export the dpiui2 database from the **old** machine using the mysqldump utility.\\ :!: **Make sure you have enough free disk space beforehand!** <code bash>. /var/www/html/dpiui2/backend/.env 
-  - Back up the contents of the **old** machine in the ''/var/www/html/dpiui2'' directory: <code bash>sudo tar -zcvpf var_www_html_dpiui2_$(date +"%Y_%m_%d_%I_%M").tar.gz /var/www/html/dpiui2/*</code> + 
-  - Import the database created in step 4 to a **new** machine<code bash>mysql -uroot -pvasexperts  dpiui2 < ./dpiui2.sql</code> +mysqldump --add-drop-table --single-transaction=TRUE -u $DB_USERNAME --password=$DB_PASSWORD -h $DB_HOST -P $DB_PORT $DB_DATABASE | gzip > dpiui2.sql.gz</code> 
-  - Upload the contents of the archive created in step 5 to the **new** machine, into the ''/var/www/html/dpiui2'' folder: <code bash>sudo tar -xzpf var_www_html_dpiui2_2026_03_20_04_43.tar.gz -C  /</code>+  - Back up the contents of the **old** machine in the ''/var/www/html/dpiui2'' directory: <code bash>sudo tar -zcvpf var_www_html_dpiui2.tar.gz /var/www/html/dpiui2/*</code> 
 +  - Import the ''dpiui2.sql.gz'' file created in step 4 onto the **new** machine <code bash>/var/www/html/dpiui2/backend/.env 
 + 
 +gunzip < dpiui2.sql.gz | mysql -u $DB_USERNAME --password=$DB_PASSWORD $DB_DATABASE</code> 
 +  - Upload the contents of the archive created in step 5 to the **new** machine, into the ''/var/www/html/dpiui2'' folder: <code bash>sudo tar -xzpf var_www_html_dpiui2.tar.gz -C  /</code>
   - Reinstall the GUI package on a **new** machine: <code bash>yum reinstall dpiui2</code>   - Reinstall the GUI package on a **new** machine: <code bash>yum reinstall dpiui2</code>
   - Verify that everything is working correctly on the **new** GUI and that all policies/services have been migrated   - Verify that everything is working correctly on the **new** GUI and that all policies/services have been migrated
   - Run the uninstallation script on the **old** machine: <code bash>source <(curl https://vasexperts.ru/install/dpiui2-rpm_uninstall.sh)</code>   - Run the uninstallation script on the **old** machine: <code bash>source <(curl https://vasexperts.ru/install/dpiui2-rpm_uninstall.sh)</code>