Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: DM 如果过滤多种表前缀匹配,配置文件要怎么配置?
Black and white list global configuration, each instance references the configuration item name through the configuration.
block-allow-list: # If the DM version is earlier than v2.0.0-beta.2, use black-white-list.
global:
do-dbs: [“syncdb”]
ignore-tables: # Whitelist of upstream tables that need to be migrated.
- db-name: “syncdb” # The name of the database where the table to be migrated is located.
tbl-name: “~^test_ss*” # The name of the table to be migrated.
As above, I have already filtered the tables starting with test_ss. I also want to filter the tables starting with bak_. How do I configure it in the configuration file? Do I just add another line with tbl-name: “~^bak*”?