# ----------------------------------------------------------------------- # This file is part of TISBackup # # TISBackup is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # TISBackup is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with TISBackup. If not, see . # # ----------------------------------------------------------------------- """ TISBackup library - Backup orchestration and driver management. This package provides a modular backup system with: - Base driver classes for implementing backup types - Database management for backup statistics - SSH and process execution utilities - Date/time and formatting helpers """ # Import from new modular structure from .base_driver import ( backup_drivers, backup_generic, nagiosStateCritical, nagiosStateOk, nagiosStateUnknown, nagiosStateWarning, register_driver, ) from .database import BackupStat from .process import call_external_process, monitor_stdout from .ssh import load_ssh_private_key, ssh_exec from .utils import ( check_string, convert_bytes, dateof, datetime2isodate, fileisodate, hours_minutes, html_table, isodate2datetime, pp, splitThousands, str2bool, time2display, ) # Maintain backward compatibility - re-export everything that was in common.py __all__ = [ # Nagios states "nagiosStateOk", "nagiosStateWarning", "nagiosStateCritical", "nagiosStateUnknown", # Driver registry "backup_drivers", "register_driver", # Base classes "backup_generic", "BackupStat", # SSH utilities "load_ssh_private_key", "ssh_exec", # Process utilities "call_external_process", "monitor_stdout", # Date/time utilities "datetime2isodate", "isodate2datetime", "time2display", "hours_minutes", "fileisodate", "dateof", # Formatting utilities "splitThousands", "convert_bytes", "pp", "html_table", # Validation utilities "check_string", "str2bool", ]