feat-backup-classes #2

Merged
av merged 7 commits from feat-backup-classes into master 2025-12-21 07:14:21 +00:00
Showing only changes of commit 037e0cab9b - Show all commits

View File

@@ -93,8 +93,13 @@ class ResticStorage(Storage):
if not backup_dirs:
logger.warning("No backup directories found")
return True
try:
return self.__backup_internal(backup_dirs)
except Exception as exc: # noqa: BLE001
logger.error("Restic backup process failed: %s", exc)
return False
def __backup_internal(self, backup_dirs: List[str]) -> bool:
logger.info("Starting restic backup")
logger.info("Destination: %s", self.restic_repository)
@@ -154,10 +159,6 @@ class ResticStorage(Storage):
logger.info("Final restic check completed successfully")
return True
except Exception as exc: # noqa: BLE001
logger.error("Restic backup process failed: %s", exc)
return False
class BackupManager:
def __init__(self, config: Config, storages: List[Storage]):