2023-02-08 14:05:25 +00:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
2023-01-23 13:43:18 +00:00
|
|
|
|
2023-02-08 14:18:45 +00:00
|
|
|
class Backups:
|
|
|
|
"""A singleton controller for backups"""
|
|
|
|
|
|
|
|
|
2023-01-23 13:43:18 +00:00
|
|
|
class AbstractBackuper(ABC):
|
|
|
|
def __init__(self):
|
2023-02-08 14:05:25 +00:00
|
|
|
pass
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
def start_backup(self, folder: str):
|
|
|
|
raise NotImplementedError
|