mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-05 02:53:11 +00:00
12 lines
473 B
Python
12 lines
473 B
Python
from .provider import AbstractBackupProvider
|
|
from selfprivacy_api.backup.restic_backuper import ResticBackuper
|
|
|
|
|
|
class LocalFileBackup(AbstractBackupProvider):
|
|
backuper = ResticBackuper("", "", "memory")
|
|
|
|
# login and key args are for compatibility with generic provider methods. They are ignored.
|
|
def __init__(self, filename: str, login: str = "", key: str = ""):
|
|
super().__init__()
|
|
self.backuper = ResticBackuper("", "", f":local:{filename}/")
|