mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-18 16:39:13 +00:00
feature(backups): register localfile backend
This commit is contained in:
parent
c493a49daa
commit
f1987edd99
|
@ -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.backblaze import Backblaze
|
||||||
from selfprivacy_api.backup.providers.memory import InMemoryBackup
|
from selfprivacy_api.backup.providers.memory import InMemoryBackup
|
||||||
|
from selfprivacy_api.backup.providers.local_file import LocalFileBackup
|
||||||
|
|
||||||
PROVIDER_MAPPING = {
|
PROVIDER_MAPPING = {
|
||||||
BackupProvider.BACKBLAZE: Backblaze,
|
BackupProvider.BACKBLAZE: Backblaze,
|
||||||
BackupProvider.MEMORY: InMemoryBackup,
|
BackupProvider.MEMORY: InMemoryBackup,
|
||||||
|
BackupProvider.FILE: LocalFileBackup,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -21,3 +21,4 @@ class BackupProvider(Enum):
|
||||||
BACKBLAZE = "BACKBLAZE"
|
BACKBLAZE = "BACKBLAZE"
|
||||||
# for testing purposes, make sure not selectable in prod.
|
# for testing purposes, make sure not selectable in prod.
|
||||||
MEMORY = "MEMORY"
|
MEMORY = "MEMORY"
|
||||||
|
FILE = "FILE"
|
||||||
|
|
Loading…
Reference in a new issue