This commit is contained in:
hsafaei
2025-07-29 10:29:49 +03:30
parent 5d87fed26e
commit f37eee49ba
11 changed files with 1941 additions and 82 deletions
+6 -6
View File
@@ -16,14 +16,14 @@ 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')
# host=os.getenv('HOST_112')
# password=os.getenv('HOST_112_PASS')
host=os.getenv('HOST_118')
password=os.getenv('HOST_118_PASS')
# host=os.getenv('HOST_118')
# password=os.getenv('HOST_118_PASS')
# host=os.getenv('HOST_60')
# password=os.getenv('HOST_60_PASS')
@@ -48,8 +48,8 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
# elastic.backupIndexToZipfile("G:/Project2/111/haditha", "dh_haditha")
#elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section-m1")
# elastic.createIndex( 'mj_qa_section-m1', 'majles', 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/server112/mj_qa_section-m1.zip', 'mj_qa_section-m1', 'majles', False, 'mj_qa_section')
elastic.createIndex( 'mj_qa_section-m1', 'majles', 'mj_qa_section')
elastic.restorFileToElastic2('G:/Project2/111/server112/mj_qa_section-m1.zip', 'mj_qa_section-m1', 'majles', False, 'mj_qa_section')
# elastic.backupIndexToZipfile("G:/Project2/111", "gn_calendar")
#elastic.createIndex( 'gn_calendar', 'general', 'gn_calendar')