You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
feat(cmapi,cli): MCOL-5618: Add backup, restore, backup-dbrm, restore-dbrm commands for mcs cli tool. (#3130)
* MCOL-5618: Add backup, restore, backup-dbrm, restore-dbrm commands for mcs cli tool. [add] mcs_cluster_tool/helpers.py file with cook_sh_arg function inside [add] MCS_BACKUP_MANAGER_SH to mcs_cluster_tool/constants.py [add] backup and restore commands to "mcs" Typer APP * MCOL-5618: Move mcs_backup_manager.sh to cmapi/scripts. * MCOL-5618: Install mcs_backup_manager.sh with CMAPI package.
This commit is contained in:
@ -4,7 +4,9 @@ import sys
|
||||
import typer
|
||||
|
||||
from cmapi_server.logging_management import dict_config, add_logging_level
|
||||
from mcs_cluster_tool import cluster_app, cmapi_app
|
||||
from mcs_cluster_tool import (
|
||||
cluster_app, cmapi_app, backup_commands, restore_commands
|
||||
)
|
||||
from mcs_cluster_tool.constants import MCS_CLI_LOG_CONF_PATH
|
||||
|
||||
|
||||
@ -16,11 +18,15 @@ app = typer.Typer(
|
||||
'MCS services'
|
||||
),
|
||||
)
|
||||
app.add_typer(cluster_app.app, name="cluster")
|
||||
app.add_typer(cmapi_app.app, name="cmapi")
|
||||
app.add_typer(cluster_app.app, name='cluster')
|
||||
app.add_typer(cmapi_app.app, name='cmapi')
|
||||
app.command()(backup_commands.backup)
|
||||
app.command('backup-dbrm')(backup_commands.backup_dbrm)
|
||||
app.command()(restore_commands.restore)
|
||||
app.command('restore-dbrm')(restore_commands.restore_dbrm)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if __name__ == '__main__':
|
||||
add_logging_level('TRACE', 5) #TODO: remove when stadalone mode added.
|
||||
dict_config(MCS_CLI_LOG_CONF_PATH)
|
||||
logger = logging.getLogger('mcs_cli')
|
||||
|
Reference in New Issue
Block a user