gufo.thor.services.db¶
DBService definition.
DBService
¶
Bases: BaseService
Base class for database services that support backup and restore.
Attributes:
| Name | Type | Description |
|---|---|---|
role |
The database role assigned to this service. |
get_backup_file_name()
¶
Get the name of the service backup artifact.
Returns:
| Type | Description |
|---|---|
str
|
The service-specific backup filename. |
get_backup_script()
¶
Get the backup script contents.
Returns:
| Type | Description |
|---|---|
str
|
The service-specific backup script. |
get_backup_script_name()
¶
Get the backup script filename.
Returns:
| Type | Description |
|---|---|
str
|
The service-specific backup script filename. |
get_restore_script()
¶
Get the restore script contents.
Returns:
| Type | Description |
|---|---|
str
|
The service-specific restore script. |
get_restore_script_name()
¶
Get the restore script filename.
Returns:
| Type | Description |
|---|---|
str
|
The service-specific restore script filename. |