Bug 1565523

Summary: engine-backup(8) man page is not up-to-date with engine-backup features
Product: [oVirt] ovirt-engine Reporter: Jiri Belka <jbelka>
Component: Backup-Restore.EngineAssignee: Asaf Rachmani <arachman>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: low Docs Contact:
Priority: low    
Version: 4.2.2.6CC: bugs, lsvaty, lveyde, rdlugyhe, ylavi
Target Milestone: ovirt-4.2.4Flags: rule-engine: ovirt-4.2+
ylavi: exception+
pnovotny: testing_plan_complete-
lsvaty: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 08:43:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1848877    

Description Jiri Belka 2018-04-10 08:24:03 UTC
Description of problem:

descr inline:

# man -P cat engine-backup | col -b | sed -n '/^MODES/,/^$/p'
MODES
       backup    backup system into FILE
       restore   restore system from FILE

       ^^^^^^^ missing verify

# man -P cat engine-backup | col -b | sed -n '/^SCOPE/,/^$/p'
SCOPES
       all       complete backup/restore (default)
       db        database only

       ^^ missing other scopes

# engine-backup --help | head
engine-backup: back up and restore ovirt-engine environment
USAGE:
    /usr/bin/engine-backup --mode=MODE --scope=SCOPE --file=FILE --log=FILE [options]
 MODE is one of the following:
    backup                          back up system into FILE
    restore                         restore system from FILE
    verify                          verify FILE

    ^^^^^^ not part of manpage

 SCOPE is one of the following:
    all                             If MODE=backup: backup everything below.
                                    If MODE=restore: restore everything found in FILE.

plus others like archive-compressor, file-compressor, keep-temporary-data

man pages are not dead yet.

Version-Release number of selected component (if applicable):
100 %

How reproducible:
ovirt-engine-tools-backup-4.2.2.6-0.1.el7.noarch

Steps to Reproduce:
1. compare engine-backup --help with engine-backup(8)
2.
3.

Actual results:
man page was not updated to latest tool's features

Expected results:
should be sync, ideally --help should be minimal and people should be taught to read man page (oh, so 90ies)

Additional info:

Comment 1 Pavel Novotny 2018-06-07 15:04:39 UTC
Verified in ovirt-engine-tools-backup-4.2.4.1-0.1.el7.noarch

The man page is now synced with the engine-backup --help instructions,
i.e., the modes, scopes, and command line options are up-to-date.

Excerpt from the current man page:
~~~
# engine-backup --help | head -n 20
engine-backup: back up and restore ovirt-engine environment
USAGE:
    /usr/bin/engine-backup --mode=MODE --scope=SCOPE --file=FILE --log=FILE [options]
 MODE is one of the following:
    backup                          back up system into FILE
    restore                         restore system from FILE
    verify                          verify FILE
 SCOPE is one of the following:
    all                             If MODE=backup: backup everything below.
                                    If MODE=restore: restore everything found in FILE.
    files                           product files only
    db                              Engine database only
    dwhdb                           Data Warehouse database only
    The option --scope can be passed more than once, with different scopes.
 --file=FILE                        file to use during backup or restore
 --log=FILE                         log file to use during backup or restore
 --tmpdir=DIR                       Set temporary directory parent. See also mktemp(1).
                                    Defaults to $TMPDIR, if set, otherwise to /tmp.
 --archive-compressor=COMPRESSOR
    Use COMPRESSOR to compress the backup file, can be one of:
~~~

Comment 2 Sandro Bonazzola 2018-06-26 08:43:07 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.

Comment 3 Yedidyah Bar David 2021-09-13 11:23:20 UTC
*** Bug 1868929 has been marked as a duplicate of this bug. ***