Source: factory.core/extend.backup/ObjBackupHandler.py
Base class for database backup handlers.
Subclasses must implement:
| Method | Signature | Description |
|---|---|---|
| dump | dump(build_folder: str, database: str, connection_config: dict) -> List[str] |
Dump the database to file(s). |
| list_databases | list_databases(connection_config: dict) -> List[str] |
List available databases/buckets. |
| get_database_size | get_database_size(database: str, connection_config: dict) -> int |
Estimate database size in bytes. |
| system_databases | system_databases() -> tuple |
Databases to exclude from discovery. |
| compress | compress(files: List[str], zip_path: str) -> bool |
Compress files into a 7z archive. |
| cleanup | cleanup(files: List[str]) -> None |
Remove intermediate files. |
| run_cli_with_progress | run_cli_with_progress(cmd_args: List[str], output_file: str, total_bytes: int, label: str) -> bool |
Run a CLI dump command with a progress |
| run_cli_to_dir | run_cli_to_dir(cmd_args: List[str], label: str) -> bool |
Run a CLI command that outputs to a |