diff --git a/lib/foreman_maintain/cli/backup_command.rb b/lib/foreman_maintain/cli/backup_command.rb index 29ecb3a96..2f8ceab0b 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 + Create 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 + Create 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