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

13 lines
511 B
Python
Raw Normal View History

2023-02-20 11:32:25 +00:00
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("", "", ":local:")
self.backuper.set_creds("", "", filename)