From 5a200117ddd2bc958b30eb11d09669c71d898c0e Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Mon, 19 Aug 2024 15:21:53 +0200 Subject: [PATCH] reword backup subcommand help --- lib/foreman_maintain/cli/backup_command.rb | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/lib/foreman_maintain/cli/backup_command.rb b/lib/foreman_maintain/cli/backup_command.rb index 29ecb3a96..0132e913d 100644 --- a/lib/foreman_maintain/cli/backup_command.rb +++ b/lib/foreman_maintain/cli/backup_command.rb @@ -112,6 +112,13 @@ class OnlineBackupCommand < Base interactive_option common_backup_options + banner <<-BANNER + Perform a backup with most services still running. + + The only services that are shut down are workers that can influence + the consistency of the backup. + BANNER + def execute perform_backup(:online) end @@ -122,14 +129,18 @@ class OfflineBackupCommand < Base interactive_option common_backup_options + banner <<-BANNER + Perform a backup with all services shut down. + BANNER + def execute perform_backup(:offline) end end class BackupCommand < Base - subcommand 'online', 'Keep services online during backup', OnlineBackupCommand - subcommand 'offline', 'Shut down services to preserve consistent backup', OfflineBackupCommand + subcommand 'online', 'Create backup with most services still running', OnlineBackupCommand + subcommand 'offline', 'Create backup with all services shut down', OfflineBackupCommand end end end