mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-05 11:03:12 +00:00
19 lines
527 B
Python
19 lines
527 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.backuper import AbstractBackuper
|
|
|
|
|
|
class AbstractBackupProvider(ABC):
|
|
@property
|
|
def backuper(self) -> AbstractBackuper:
|
|
raise NotImplementedError
|
|
|
|
def __init__(self, login="", key="", location=""):
|
|
self.backuper.set_creds(login, key, location)
|
|
self.login = login
|
|
self.key = key
|