manager
¶
Main module which manages the backups and restore functions
Classes:
-
BackupManager
–Manages the backups and restore functions
Attributes¶
Classes¶
BackupManager
¶
BackupManager(
compression: CompressionAlgorithm = "plain",
backup_dir: Path = DEFAULT_BACKUP_DIR,
use_timestamp: bool = False,
use_secret: bool = False,
webhook_url: str = "",
project_name: str = "",
global_mode: bool = False,
)
Manages the backups and restore functions
Methods:
-
get_temp_backup_file_name
– -
get_backup_filename
– -
get_my_container_id
– -
get_compose_project
– -
get_enabled_containers
– -
get_backup_provider
– -
backup
– -
restore
–
Attributes:
-
BACKUP_PROVIDERS
(list[type[BackupProviderBase]]
) – -
compression
(CompressionAlgorithm
) – -
backup_dir
– -
use_timestamp
– -
strtimestamp
(str
) – -
use_secret
– -
webhook_url
– -
global_mode
– -
porject_name
– -
docker_client
–
Attributes¶
BACKUP_PROVIDERS
class-attribute
instance-attribute
¶
BACKUP_PROVIDERS: list[type[BackupProviderBase]] = (
BACKUP_PROVIDERS
)
strtimestamp
instance-attribute
¶
Functions¶
get_backup_filename
¶
get_backup_filename(
container: Container, provider: BackupProviderBase
) -> Path