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