Replication Options - MyDumper documentation

Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# Replication Options

The metadata file is a way to share information between mydumper and myloader.

There are 3 options on the metadata file to control which replication commands will execute myloader.

The option is `--source-data`, which accepts a value between -1 and 7 following this table:

--source-data | myloader_exec_start_slave | myloader_exec_change_master | myloader_exec_reset_slave | SSL | auto_position | exec_start_replica_until
--- | --- | --- | --- | --- | --- | ---
0 | 0 | 0 | 0 | 0 | 0 | 0
1 | 0 | 0 | 1 | 0 | 0 | 0
2 | 0 | 1 | 0 | 0 | 0 | 0
3 | 0 | 1 | 1 | 0 | 0 | 0
4 | 1 | 0 | 0 | 0 | 0 | 0
5 | 1 | 0 | 1 | 0 | 0 | 0
6 | 1 | 1 | 0 | 0 | 0 | 0
7 | 1 | 1 | 1 | 0 | 0 | 0

Where 0 means that it will not be executed and 1 means that it will be executed. If -1 is provided, it will not collect information related to the replication.