diff --git a/app/classes/shared/backup_mgr.py b/app/classes/shared/backup_mgr.py new file mode 100644 index 00000000..6cf1d0f6 --- /dev/null +++ b/app/classes/shared/backup_mgr.py @@ -0,0 +1,7 @@ +from app.classes.shared.crypto_helper import CryptoHelper + + +class BackupManager: + def __init__(self, server_instance): + self.server_instance = server_instance + self.crypto_helper = CryptoHelper() diff --git a/app/classes/shared/crypto_helper.py b/app/classes/shared/crypto_helper.py new file mode 100644 index 00000000..7c91620c --- /dev/null +++ b/app/classes/shared/crypto_helper.py @@ -0,0 +1,2 @@ +class CryptoHelper: + print("hi") diff --git a/app/classes/shared/server.py b/app/classes/shared/server.py index b037bbe5..83360fae 100644 --- a/app/classes/shared/server.py +++ b/app/classes/shared/server.py @@ -31,6 +31,7 @@ from app.classes.models.server_stats import HelperServerStats from app.classes.models.management import HelpersManagement, HelpersWebhooks from app.classes.models.users import HelperUsers from app.classes.models.server_permissions import PermissionsServers +from app.classes.shared.backup_mgr import BackupManager from app.classes.shared.console import Console from app.classes.shared.helpers import Helpers from app.classes.shared.file_helpers import FileHelpers @@ -183,6 +184,7 @@ class ServerInstance: self.stats_helper = HelperServerStats(self.server_id) self.last_backup_failed = False self.server_registry = CollectorRegistry() + self.backup_manager = BackupManager(self) try: with open(