selfprivacy-rest-api/selfprivacy_api/backup/providers/provider.py
2023-05-17 20:27:40 +00:00

18 lines
445 B
Python

"""
An abstract class for BackBlaze, S3 etc.
It assumes that while some providers are supported via restic/rclone, others may
require different backends
"""
from abc import ABC
from selfprivacy_api.backup import AbstractBackuper
class AbstractBackupProvider(ABC):
@property
def backuper(self) -> AbstractBackuper:
raise NotImplementedError
def __init__(self, login, key):
self.login = login
self.key = key