feature(backups): register localfile backend

This commit is contained in:
Houkime 2023-02-20 11:44:59 +00:00
parent c493a49daa
commit f1987edd99
2 changed files with 3 additions and 0 deletions

View file

@ -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,
}

View file

@ -21,3 +21,4 @@ class BackupProvider(Enum):
BACKBLAZE = "BACKBLAZE"
# for testing purposes, make sure not selectable in prod.
MEMORY = "MEMORY"
FILE = "FILE"