This commit is contained in:
hsafaei
2025-06-18 15:46:57 +03:30
parent e4a92befb7
commit cec03b7d3b
11 changed files with 856 additions and 150 deletions
+8 -4
View File
@@ -19,8 +19,6 @@ load_dotenv(dotenv_path='config.env')
host=os.getenv('HOST_160')
password=os.getenv('HOST_160_PASS')
# host=os.getenv('HOST_112')
# password=os.getenv('HOST_112_PASS')
@@ -33,6 +31,9 @@ password=os.getenv('HOST_160_PASS')
# host=os.getenv('HOST_80')
# password=os.getenv('HOST_80_PASS')
# host=os.getenv('HOST_133')
# password=os.getenv('HOST_133_PASS')
print(host)
# print(password)
@@ -43,11 +44,14 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
# elastic.backupIndexToZipfile("G:/Project2/111/haditha", "dh_volume")
# elastic.backupIndexToZipfile("G:/Project2/111/haditha", "dh_haditha")
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section-m1")
#elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section-m1")
# elastic.createIndex( 'mj_qa_section-m1', 'majles', 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/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')
#elastic.restorFileToElastic2('G:/Project2/111/gn_calendar.zip', 'gn_calendar', 'general', False, 'gn_calendar')
#elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section")
# elastic.restorFileToElastic2('G:/Project2/111/gn_setting.zip', 'gn_setting', 'general', False, 'gn_setting')