"""Database backup module for automatic encrypted backups."""

from .backup_service import BackupResult, BackupService
from .backup_executor import BackupExecutor, get_backup_executor

# Backward-compat aliases (deprecate in next minor version).
BackupScheduler = BackupExecutor
get_backup_scheduler = get_backup_executor
# Callers that used .schedule_backup(...) on the old class still work:
BackupExecutor.schedule_backup = BackupExecutor.submit_backup

__all__ = [
    "BackupService",
    "BackupResult",
    "BackupExecutor",
    "get_backup_executor",
    "BackupScheduler",  # deprecated alias
    "get_backup_scheduler",  # deprecated alias
]
