Description of problem:
Katello-backup will shut down the satellite without prompting the user first. This can have serious consequences if the user does not know ahead of time that the satellite will be shut down during the backup.
Note that there is a --online-backup option, but it applies only to the Pulp portion. This should likely be renamed to --online-pulp-backup to avoid confusion.
Ideally, katello-backup would prompt the user before commencing the backup that there will be a shutdown, and have a command-line option to optionally skip the prompt (for example, --ok-to-shutdown or similar).
Version-Release number of selected component (if applicable): 6.2.6
The latest version from upstream properly keeps services online:
# ./katello-backup --skip-pulp-content --online-backup /var/tmp
Starting backup: 2017-01-20 13:15:09 -0500
Creating backup folder /var/tmp/katello-backup-2017-01-20T13:15:09-05:00
Backing up config files...
tar: Removing leading `/' from member names
Backing up postgres db...
Backing up mongo db...
Done with backup: 2017-01-20 13:21:53 -0500
**** BACKUP Complete, contents can be found in: /var/tmp/katello-backup-2017-01-20T13:15:09-05:00 ****
but we still need a confirm flag.
Created redmine issue http://projects.theforeman.org/issues/18328 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/18328 has been resolved.
katello-backup does provide the message that it's being replaced by foreman-maintain backup as seen below:
-bash-4.2# katello-backup --skip-pulp-content --online-backup /var/tmp
IMPORTANT: katello-backup has been removed in favor of 'foreman-maintain backup'.
This change happened in order to support remote databases and a newer mongo version.
Please update your scripts and/or cron jobs.
Ran foreman-mantain backup and successfully backed up system with both online and offline options as seen below:
Done with backup: 2018-09-19 10:28:27 -0400
**** BACKUP Complete, contents can be found in: /var/tmp/satellite-backup-2018-09-19-10-24-58 ****
Marking this as