mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-26 14:01:30 +00:00
refactor(backups): make a dir for backuppers
This commit is contained in:
parent
f02e27cf06
commit
3449837de9
|
@ -6,7 +6,7 @@ from typing import List
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
from json.decoder import JSONDecodeError
|
from json.decoder import JSONDecodeError
|
||||||
|
|
||||||
from selfprivacy_api.backup.backuper import AbstractBackuper
|
from selfprivacy_api.backup.backuppers import AbstractBackuper
|
||||||
from selfprivacy_api.models.backup.snapshot import Snapshot
|
from selfprivacy_api.models.backup.snapshot import Snapshot
|
||||||
from selfprivacy_api.backup.jobs import get_backup_job
|
from selfprivacy_api.backup.jobs import get_backup_job
|
||||||
from selfprivacy_api.services import get_service_by_id
|
from selfprivacy_api.services import get_service_by_id
|
|
@ -1,5 +1,5 @@
|
||||||
from .provider import AbstractBackupProvider
|
from .provider import AbstractBackupProvider
|
||||||
from selfprivacy_api.backup.restic_backuper import ResticBackuper
|
from selfprivacy_api.backup.backuppers.restic_backupper import ResticBackuper
|
||||||
|
|
||||||
|
|
||||||
class Backblaze(AbstractBackupProvider):
|
class Backblaze(AbstractBackupProvider):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from .provider import AbstractBackupProvider
|
from .provider import AbstractBackupProvider
|
||||||
from selfprivacy_api.backup.restic_backuper import ResticBackuper
|
from selfprivacy_api.backup.backuppers.restic_backupper import ResticBackuper
|
||||||
|
|
||||||
|
|
||||||
class LocalFileBackup(AbstractBackupProvider):
|
class LocalFileBackup(AbstractBackupProvider):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from .provider import AbstractBackupProvider
|
from .provider import AbstractBackupProvider
|
||||||
from selfprivacy_api.backup.restic_backuper import ResticBackuper
|
from selfprivacy_api.backup.backuppers.restic_backupper import ResticBackuper
|
||||||
|
|
||||||
|
|
||||||
class InMemoryBackup(AbstractBackupProvider):
|
class InMemoryBackup(AbstractBackupProvider):
|
||||||
|
|
|
@ -4,7 +4,7 @@ It assumes that while some providers are supported via restic/rclone, others may
|
||||||
require different backends
|
require different backends
|
||||||
"""
|
"""
|
||||||
from abc import ABC
|
from abc import ABC
|
||||||
from selfprivacy_api.backup.backuper import AbstractBackuper
|
from selfprivacy_api.backup.backuppers import AbstractBackuper
|
||||||
|
|
||||||
|
|
||||||
class AbstractBackupProvider(ABC):
|
class AbstractBackupProvider(ABC):
|
||||||
|
|
Loading…
Reference in a new issue