$ mydumper --help Usage: mydumper [OPTION...] multi-threaded MySQL dumping Help Options: -?, --help Show help options Application Options: -B, --database 要備份的數據庫,不指定則備份全部庫 -T, --tables-list 須要備份的表,名字用逗號隔開 -o, --outputdir 備份文件輸出的目錄 -s, --statement-size 生成的insert語句的字節數,默認1000000 -r, --rows Try to split tables into chunks of this many rows. This option turns off --chunk-filesize -F, --chunk-filesize Split tables into chunks of this output file size. This value is in MB -c, --compress Compress output files壓縮輸出文件 -e, --build-empty-files 若是表數據是空,仍是產生一個空文件(默認無數據則只有表結構文件) -x, --regex Regular expression for 'db.table' matching 使用正則表達式匹配'db.table' -i, --ignore-engines Comma delimited list of storage engines to ignore忽略的存儲引擎,用逗號分割 -m, --no-schemas Do not dump table schemas with the data不備份表結構,只備份數據 -d, --no-data Do not dump table data備份表結構,不備份數據 -G, --triggers Dump triggers備份觸發器 -E, --events Dump events -R, --routines Dump stored procedures and functions備份存儲過程和函數 -k, --no-locks 不使用臨時共享只讀鎖,使用這個選項會形成數據不一致 --less-locking Minimize locking time on InnoDB tables.減小對InnoDB表的鎖施加時間 -l, --long-query-guard 設定阻塞備份的長查詢超時時間,單位是秒,默認是60秒(超時後默認mydumper將會退出) -K, --kill-long-queries Kill long running queries (instead of aborting)殺掉長查詢 (不退出) -D, --daemon Enable daemon mode啓用守護進程模式,守護進程模式以某個間隔不間斷對數據庫進行備 -I, --snapshot-interval dump快照間隔時間,默認60s,須要在daemon模式下 -L, --logfile 使用的日誌文件名(mydumper所產生的日誌), 默認使用標準輸出 --tz-utc SET TIME_ZONE='+00:00' at top of dump to allow dumping of TIMESTAMP data when a server has data in different time zones or data is being moved between servers with different time zones, defaults to on use --skip-tz-utc to disable. --skip-tz-utc --use-savepoints 使用savepoints來減小採集metadata所形成的鎖時間,須要 SUPER 權限 --success-on-1146 Not increment error count and Warning instead of Critical in case of table doesn't exist --lock-all-tables Use LOCK TABLE for all, instead of FTWRL -U, --updated-since Use Update_time to dump only tables updated in the last U days --trx-consistency-only Transactional consistency only -h, --host 鏈接的主機名 -u, --user 用來備份的用戶名 -p, --password 用戶密碼 -P, --port 鏈接端口 -S, --socket 使用socket通訊時的socket文件 -t, --threads 開啓的備份線程數,默認是4 -C, --compress-protocol 壓縮與mysql通訊的數據 -V, --version 顯示版本號 -v, --verbose 輸出信息模式, 0 = silent, 1 = errors, 2 = warnings, 3 = info, 默認爲2