# Incremental data replication - Config the replication task 

+ Edit the task configuration file `dm-task`
  + Rules : `routes` / `filters` / `block-allow-list`

```
routes:
# Rule 1: Migrate all tables in the user database in upstream MySQL instance1 with port 3306 to user_north database in the downstream TiDB Cloud. Migrate all tables in user database in upstream MySQL instance2 with port 3306 to user_east database in the downstream TiDB Cloud.
 instance-1-user-schema-rule: # The first of the routing mapping rule.
  schema-pattern: "user"
  target-schema: "user_north"
 instance-2-user-schema-rule:
  schema-pattern: "user"
  target-schema: “user_east”
...

# Rule 3: Migrate the table salesdb.sales which is sharded schemas in upstream MySQL instances1 with port 3306 and 3306 in the two upstream MySQL instances to the salesdb.sales tables in the downstream TiDB Cloud.
 salesdb-schema-route-rule:
  schema-pattern: “salesdb"
  target-schema: "salesdb"
...
```
-------------------------------------------------------------
Edit the rules of the source database.

For detail, see https://docs.pingcap.com/tidb/stable/task-configuration-file-full