RearConf - Configuration files of Rear

Parsers included in this module are:

RearLocalConf - file /etc/rear/local.conf

RearDefaultConf - file /usr/share/rear/conf/default.conf

class insights.parsers.rear_conf.RearDefaultConf(context)[source]

Bases: TextFileOutput

Parses content of “/usr/share/rear/conf/default.conf”.

Typical content of “/usr/share/rear/conf/default.conf”:

COPY_AS_IS_EXCLUDE=( $VAR_DIR/output/ dev/.udev dev/shm dev/shm/ dev/oracleasm dev/mapper dev/watchdog )

Examples

>>> type(default_conf)
<class 'insights.parsers.rear_conf.RearDefaultConf'>
>>> default_conf.lines[0] == 'COPY_AS_IS_EXCLUDE=( $VAR_DIR/output/ dev/.udev dev/shm dev/shm/ dev/oracleasm dev/mapper dev/watchdog )'
True
parse_content(content)[source]

Use all the defined scanners to search the log file, setting the properties defined in the scanner.

class insights.parsers.rear_conf.RearLocalConf(context)[source]

Bases: TextFileOutput

Parses content of “/etc/rear/local.conf”.

Typical content of “/etc/rear/local.conf”:

BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )

Examples

>>> type(local_conf)
<class 'insights.parsers.rear_conf.RearLocalConf'>
>>> local_conf.lines[0] == 'BACKUP_RESTORE_MOVE_AWAY_FILES=( /boot/grub/grubenv /boot/grub2/grubenv )'
True
parse_content(content)[source]

Use all the defined scanners to search the log file, setting the properties defined in the scanner.