|
|
@@ -2772,6 +2772,7 @@ function INSTALL_SES_PROCESY_A() {
|
|
|
<br>
|
|
|
Refresh manually file process_table.sql for hand-process updating by running command : <br>
|
|
|
mysqldump -uroot -p -hse.dev.webone.pl SES_USERS2 CRM_PROCES CRM_WSKAZNIK CRM_LISTA_ZASOBOW CRM_TESTY_PYTANIA CRM_IMAGE CRM_IMPORT_TRANSLATE > ".$OPTIONS->SE_config."/config/process_table.sql <br>
|
|
|
+ Than scp this file to remote system by scp <br>
|
|
|
Than on remote system backup important tables with command:<br>
|
|
|
create table CRM_PROCES_copy select * from CRM_PROCES; <br>
|
|
|
create table CRM_WSKAZNIK_copy select * from CRM_WSKAZNIK;<br>
|
|
|
@@ -2781,7 +2782,7 @@ function INSTALL_SES_PROCESY_A() {
|
|
|
create table CRM_IMPORT_TRANSLATE_copy select * from CRM_IMPORT_TRANSLATE; <br>
|
|
|
<br>
|
|
|
Than configure import_db with .cnf configs on different IP address<br>
|
|
|
- than run FROM_ZASOBY_TO_ZASOBY ?FUNCTION_INIT=SQIX_STRUCTURE_DB_SYNC <br>
|
|
|
+
|
|
|
echo \";<?php<br>
|
|
|
;die(); // For further security<br>
|
|
|
;// default DB<br>
|
|
|
@@ -2795,7 +2796,18 @@ database=\"import\"<br>
|
|
|
\" > /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db.ini.php <br>
|
|
|
Than link it <br>
|
|
|
ln -s /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db.ini.php /Library/Server/Web/Data/Sites/Default/SE/config/.cnf--import_db-".$h->SERVER_ADDRESS.".ini.php <br>
|
|
|
-
|
|
|
+ <br>
|
|
|
+ than on remote system on import_db use mysql and following commands:<br>
|
|
|
+ create database import; --or ignore if its exists <br>
|
|
|
+ use import;<br>
|
|
|
+ drop table if exists import.CRM_WSKAZNIK;<br>
|
|
|
+ drop table if exists import.CRM_IMAGE;<br>
|
|
|
+ drop table if exists import.CRM_LISTA_ZASOBOW;<br>
|
|
|
+ drop table if exists import.CRM_PROCES;<br>
|
|
|
+ drop table if exists import.CRM_TESTY_PYTANIA;<br>
|
|
|
+
|
|
|
+ source (path to process_table.sql file) <br>
|
|
|
+ than run FROM_ZASOBY_TO_ZASOBY ?FUNCTION_INIT=SQIX_STRUCTURE_DB_SYNC <br>
|
|
|
|
|
|
";
|
|
|
/*
|