selfprivacy-rest-api/selfprivacy_api/backup/providers/provider.py

18 lines
460 B
Python
Raw Normal View History

"""
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.backuper import AbstractBackuper
class AbstractBackupProvider(ABC):
@property
def backuper(self) -> AbstractBackuper:
raise NotImplementedError
2023-02-01 11:58:55 +00:00
def __init__(self, login="", key=""):
2023-02-01 11:58:55 +00:00
self.login = login
self.key = key