From 0ce6624d5a70a5dbcc57686542f1eec549209845 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Mon, 20 Feb 2023 11:44:59 +0000 Subject: [PATCH] feature(backups): register localfile backend --- selfprivacy_api/backup/providers/__init__.py | 2 ++ selfprivacy_api/graphql/queries/providers.py | 1 + 2 files changed, 3 insertions(+) diff --git a/selfprivacy_api/backup/providers/__init__.py b/selfprivacy_api/backup/providers/__init__.py index 66fb9e6..21c4467 100644 --- a/selfprivacy_api/backup/providers/__init__.py +++ b/selfprivacy_api/backup/providers/__init__.py @@ -3,10 +3,12 @@ from selfprivacy_api.backup.providers.provider import AbstractBackupProvider from selfprivacy_api.backup.providers.backblaze import Backblaze from selfprivacy_api.backup.providers.memory import InMemoryBackup +from selfprivacy_api.backup.providers.local_file import LocalFileBackup PROVIDER_MAPPING = { BackupProvider.BACKBLAZE: Backblaze, BackupProvider.MEMORY: InMemoryBackup, + BackupProvider.FILE: LocalFileBackup, } diff --git a/selfprivacy_api/graphql/queries/providers.py b/selfprivacy_api/graphql/queries/providers.py index b4ccf9c..7cfdd75 100644 --- a/selfprivacy_api/graphql/queries/providers.py +++ b/selfprivacy_api/graphql/queries/providers.py @@ -20,3 +20,4 @@ class BackupProvider(Enum): BACKBLAZE = "BACKBLAZE" # for testing purposes, make sure not selectable in prod. MEMORY = "MEMORY" + FILE = "FILE"