# When log-bin, skip-log-bin and binlog-format options are specified, mask the warning. --disable_query_log call mtr.add_suppression("\\[Warning\\] \\[[^]]*\\] \\[[^]]*\\] You need to use --log-bin to make --binlog-format work."); --enable_query_log --replace_regex /MASTER_LOG_POS=[0-9]+/XX/ --error 2 --exec $MYSQL_DUMP --compact --master-data=2 test 2>&1