mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2026-02-05 01:40:03 +00:00
TODO note about making resistry in the future
This commit is contained in:
@@ -33,6 +33,7 @@ class Container:
|
|||||||
@property
|
@property
|
||||||
def instance(self) -> 'Container':
|
def instance(self) -> 'Container':
|
||||||
"""Container: Get a service specific subclass instance"""
|
"""Container: Get a service specific subclass instance"""
|
||||||
|
# TODO: Do this smarter in the future (simple registry)
|
||||||
if self.database_backup_enabled:
|
if self.database_backup_enabled:
|
||||||
from restic_volume_backup import containers_db
|
from restic_volume_backup import containers_db
|
||||||
if self.mariadb_backup_enabled:
|
if self.mariadb_backup_enabled:
|
||||||
|
|||||||
Reference in New Issue
Block a user