8
The Filtered Replicator plugin registers itself in the Drizzle kernel replication
9
stream process as a new replicator (see :ref:`replication_streams` for more
10
information). It provides a way to filter replication messages by schema name or
11
table name. Regular expressions can be used for the schema and table names.
13
To make the filtered replicator available, you must enable the plugin when the
14
server is started using the :option:`--plugin-add` option.
21
.. option:: --filtered-replicator.filteredschemas
23
Comma-separated list of schema names to exclude from replication.
25
.. option:: --filtered-replicator.filteredtables
27
Comma-separated list of table names to exclude from replication.
29
.. option:: --filtered-replicator.schemaregex
31
Regular expression to apply to schemas to exclude from replication.
33
.. option:: --filtered-replicator.tableregex
35
Regular expression to apply to tables to exclude from replication.
40
To prevent changes to the *foo* schema from being replicated::
42
sbin/drizzled --plugin-add=filtered_replicator \
43
--filtered-replicator.filteredschemas=foo
45
To prevent changes to any schema beginning with *test* from being replicated::
47
sbin/drizzled --plugin-add=filtered_replicator \
48
--filtered-replicator.schemaregex="test*"
50
To prevent changes to any table beginning with *junk* from being replicated::
52
sbin/drizzled --plugin-add=filtered_replicator \
53
--filtered-replicator.tableregex="junk*"