From 617240cb7d5ee42b263da5b3bf573d7cbdbe53c1 Mon Sep 17 00:00:00 2001 From: Rob Carver Date: Mon, 20 Nov 2023 11:40:38 +0000 Subject: [PATCH] fixed backup --- sysproduction/backup_arctic_to_csv.py | 4 ++-- sysproduction/run_backups.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sysproduction/backup_arctic_to_csv.py b/sysproduction/backup_arctic_to_csv.py index 6162505051..ce177d6d3b 100644 --- a/sysproduction/backup_arctic_to_csv.py +++ b/sysproduction/backup_arctic_to_csv.py @@ -35,7 +35,7 @@ def backup_db_to_csv(): data = dataBlob(log_name="backup_db_to_csv") - backup_object = backupArcticToCsv(data) + backup_object = backupDbToCsv(data) backup_object.backup_db_to_csv() return None @@ -48,7 +48,7 @@ def quick_backup_of_all_price_data_including_expired(): backup_futures_contract_prices_to_csv(backup_data, ignore_long_expired=False) -class backupArcticToCsv: +class backupDbToCsv: def __init__(self, data): self.data = data diff --git a/sysproduction/run_backups.py b/sysproduction/run_backups.py index 859e4fd46d..ef14fa9313 100644 --- a/sysproduction/run_backups.py +++ b/sysproduction/run_backups.py @@ -1,5 +1,5 @@ from syscontrol.run_process import processToRun -from sysproduction.backup_arctic_to_csv import backupArcticToCsv +from sysproduction.backup_arctic_to_csv import backupDbToCsv from sysproduction.backup_mongo_data_as_dump import backupMongo from sysproduction.backup_state_files import backupStateFiles from sysdata.data_blob import dataBlob @@ -14,16 +14,16 @@ def run_backups(): def get_list_of_timer_functions_for_backup(): - data_arctic_backups = dataBlob(log_name="backup_arctic_to_csv") + data_db_backups = dataBlob(log_name="backup_db_to_csv") data_state_files = dataBlob(log_name="backup_files") data_mongo_dump = dataBlob(log_name="backup_mongo_data_as_dump") - arctic_backup_object = backupArcticToCsv(data_arctic_backups) + db_backup_object = backupDbToCsv(data_db_backups) statefile_backup_object = backupStateFiles(data_state_files) mongodump_backup_object = backupMongo(data_mongo_dump) list_of_timer_names_and_functions = [ - ("backup_arctic_to_csv", arctic_backup_object), + ("backup_db_to_csv", db_backup_object), ("backup_mongo_data_as_dump", mongodump_backup_object), ("backup_files", statefile_backup_object), ]