wazuh-db

Configuration options for the wazuh-db daemon.

Options

backup

Configuration block to define the wazuh-db databases backup behavior.

Allowed tags

database

Defines the database to backup.

Allowed values

global

Allowed values

enabled

Enables the regular backup of this particular database.

Default value

yes

Allowed values

yes, no

interval

How often the backup is created.

Default value

1d

Allowed values

A positive number that should contain a suffix character indicating a time unit: s (seconds), m (minutes), h (hours) or d (days).

max_files

The maximum number of simultaneous backups to store before deleting the oldest ones.

Default value

3

Allowed values

A positive number.

Example of configuration

The following configuration will generate a backup of the global.db every day, with a maximum of 3 simultaneous files

<wdb>
    <backup database='global'>
        <enabled>yes</enabled>
        <interval>1d</interval>
        <max_files>3</max_files>
    </backup>
</wdb>