1
This commit is contained in:
+18
-18
@@ -16,8 +16,8 @@ from temp_LawSection_content import *
|
||||
load_dotenv(dotenv_path='config.env')
|
||||
|
||||
|
||||
host=os.getenv('HOST_160')
|
||||
password=os.getenv('HOST_160_PASS')
|
||||
# host=os.getenv('HOST_160')
|
||||
# password=os.getenv('HOST_160_PASS')
|
||||
|
||||
|
||||
|
||||
@@ -30,8 +30,8 @@ password=os.getenv('HOST_160_PASS')
|
||||
# host=os.getenv('HOST_161')
|
||||
# password=os.getenv('HOST_161_PASS')
|
||||
|
||||
# host=os.getenv('HOST_80')
|
||||
# password=os.getenv('HOST_80_PASS')
|
||||
host=os.getenv('HOST_80')
|
||||
password=os.getenv('HOST_80_PASS')
|
||||
|
||||
|
||||
print(host)
|
||||
@@ -56,22 +56,22 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
#-------------------------------------------------------
|
||||
## backup from hamfahmi.ir
|
||||
#-------------------------------------------------------
|
||||
#elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_bayanat")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_synonym")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_log_search")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_log_change")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_calendar")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_entity")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_setting")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_research")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_bayanat")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_synonym")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_log_search")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_log_change")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_calendar") # ???
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_entity")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_setting")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "gn_research") # ???
|
||||
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_jahat")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_crition")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_jahat")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_crition")
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_sanad")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_steps")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_nesha")
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_sanad") # ???
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_steps") # ???
|
||||
elastic.backupIndexToZipfile("G:/Project2/111/server3", "mn_nesha")
|
||||
|
||||
#-------------------------------------------------------
|
||||
|
||||
@@ -127,7 +127,7 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
#elastic.restorFileToElastic("G:/Project2/111", "mj_qa_section_ai", 'majles', True, "mj_qa_section")
|
||||
|
||||
#elastic.restorFileToElastic('G:/Project2/111', 'mj_model', 'majles', True, 'mj_model' )
|
||||
elastic.restorFileToElastic2('G:/Project2/111/mj_model_20250512-003003.zip', 'mj_model', 'majles', True, 'mj_model')
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_model_20250512-003003.zip', 'mj_model', 'majles', True, 'mj_model')
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section_2_majles_repair.zip', 'mj_qa_section', 'majles', False, 'mj_qa_section')
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user