mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-06 03:23:25 +00:00
15 lines
530 B
Python
15 lines
530 B
Python
from .provider import AbstractBackupProvider
|
|
from selfprivacy_api.backup.restic_backuper import ResticBackuper
|
|
|
|
|
|
class LocalFileBackup(AbstractBackupProvider):
|
|
backuper = ResticBackuper("", "", "memory")
|
|
|
|
name = "FILE"
|
|
|
|
# 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("", "", ":local:")
|
|
self.backuper.set_creds("", "", filename)
|