From e5722b0f02ef23da763d3101ddc833179dcb723c Mon Sep 17 00:00:00 2001 From: mariadb-AlanMologorsky Date: Fri, 7 Jun 2024 09:09:13 +0300 Subject: [PATCH] MCOL-5618: Minor fixes to sync after #3147 [add] -r option for backup command --- cmapi/mcs_cluster_tool/backup_commands.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/cmapi/mcs_cluster_tool/backup_commands.py b/cmapi/mcs_cluster_tool/backup_commands.py index 38c5c75b8..b20728f5e 100644 --- a/cmapi/mcs_cluster_tool/backup_commands.py +++ b/cmapi/mcs_cluster_tool/backup_commands.py @@ -224,6 +224,16 @@ def backup( hidden=True ) ] = 'direct', + r: Annotated[ + int, + typer.Option( + '-r', '--retention-days', + help=( + 'Retain backups created within the last X days, ' + 'default 0 == keep all backups.' + ) + ) + ] = 0, ): """Backup Columnstore and/or MariDB data.""" @@ -277,8 +287,7 @@ def dbrm_backup( typer.Option( '-r', '--retention-days', help=( - 'Number of days of dbrm backups to retain - script will ' - 'delete based on last update file time.' + 'Retain dbrm backups created within the last X days.' ) ) ] = 7,