selfprivacy-rest-api/selfprivacy_api/backup/backuppers/none_backupper.py

30 lines
859 B
Python
Raw Normal View History

from typing import List
from selfprivacy_api.models.backup.snapshot import Snapshot
from selfprivacy_api.backup.backuppers import AbstractBackupper
class NoneBackupper(AbstractBackupper):
def is_initted(self, repo_name: str = "") -> bool:
return False
def set_creds(self, account: str, key: str, repo: str):
pass
def start_backup(self, folders: List[str], repo_name: str):
raise NotImplementedError
def get_snapshots(self) -> List[Snapshot]:
"""Get all snapshots from the repo"""
return []
2023-06-23 09:40:10 +00:00
def init(self):
raise NotImplementedError
2023-06-23 09:40:10 +00:00
def restore_from_backup(self, snapshot_id: str, folders: List[str]):
"""Restore a target folder using a snapshot"""
raise NotImplementedError
2023-06-23 09:40:10 +00:00
def restored_size(self, snapshot_id: str) -> int:
raise NotImplementedError