Bug 52092 - Не выполняется сравнение двух баз aide -E
Summary: Не выполняется сравнение двух баз aide -E
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: aide (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Vitaly Chikunov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-18 19:41 MSK by Aleksandr Sysoev
Modified: 2024-11-18 22:16 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksandr Sysoev 2024-11-18 19:41:58 MSK
# rpm -qa | grep aide
aide-0.18.8-alt2.x86_64

Существует две базы:
# ls /var/lib/aide/
aide.db.gz  aide.db.new.gz

В конфиге они указаны:
database_in     = file:@@{DBDIR}/aide.db.gz
database_out    = file:@@{DBDIR}/aide.db.new.gz

Однако при выполнении команды сравнения # aide -E, возникает ошибка:
ERROR: must have both input databases defined for database compare

ДОПОЛНИТЕЛЬНО:
Если поправить строки в конфиге след. образом:
database     = file:@@{DBDIR}/aide.db.gz
database_new    = file:@@{DBDIR}/aide.db.new.gz

то команда выполняется успешно, но возникает предупреждение: 
WARNING: /etc/aide.conf:11: Using 'database' is DEPRECATED and will be removed in the next release.. Update your config and use 'database_in' instead (line: 'database     = file:@@{DBDIR}/aide.db.gz')

Полагаю, что # aide - E "не научили" работать с 'database_in' и 'database_out'.
Comment 1 Vitaly Chikunov 2024-11-18 22:16:52 MSK
aide(1):
       --compare, -E
              Compares two databases. They must be defined in config file with database=<url> and database_new=<url>.

aide.conf(5):
       database_in (type: URL, default: see --version output, added in AIDE v0.17)
       database (DEPRECATED since AIDE v0.17, will be removed in AIDE v0.19)
              The url from which database is read. There can only be one of these lines. If there are multiple database lines then the first is used.

       database_new (type: URL, default: <none>)
              The url from which the other database for --compare is read.