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