pybackive/backive/core/backup.py

15 lines
235 B
Python
Raw Normal View History

2019-01-06 17:34:02 +01:00
import os
class Backup:
2019-01-06 21:29:21 +01:00
def __init__(self, name, cfg=None):
2019-02-24 22:42:36 +01:00
self.name = name
self.config = cfg
2019-01-06 17:34:02 +01:00
def run(self):
pass
2019-01-06 21:29:21 +01:00
@classmethod
def instance(cls, name, cfg):
return Backup(name, cfg)