$ mydumper --helpUsage:
mydumper [OPTION...] multi-threaded MySQL dumping
Help Options: -?, --help Show help optionsApplication Options: -B, --database 要備份的數(shù)據(jù)庫(kù),不指定則備份所有庫(kù)
-T, --tables-list 需要備份的表,名字用逗號(hào)隔開(kāi)
-o, --outputdir 備份文件輸出的目錄
-s, --statement-size 生成的insert語(yǔ)句的字節(jié)數(shù),默認(rèn)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 如果表數(shù)據(jù)是空,還是產(chǎn)生一個(gè)空文件(默認(rèn)無(wú)數(shù)據(jù)則只有表結(jié)構(gòu)文件)
-x, --regex Regular expression for 'db.table' matching 使用正則表達(dá)式匹配'db.table'
-i, --ignore-engines Comma delimited list of storage engines to ignore忽略的存儲(chǔ)引擎,用逗號(hào)分割
-m, --no-schemas Do not dump table schemas with the data不備份表結(jié)構(gòu),只備份數(shù)據(jù)
-d, --no-data Do not dump table data備份表結(jié)構(gòu),不備份數(shù)據(jù)
-G, --triggers Dump triggers備份觸發(fā)器
-E, --events Dump events
-R, --routines Dump stored procedures and functions備份存儲(chǔ)過(guò)程和函數(shù)
-k, --no-locks 不使用臨時(shí)共享只讀鎖,使用這個(gè)選項(xiàng)會(huì)造成數(shù)據(jù)不一致
--less-locking Minimize locking time on InnoDB tables.減少對(duì)InnoDB表的鎖施加時(shí)間
-l, --long-query-guard 設(shè)定阻塞備份的長(zhǎng)查詢(xún)超時(shí)時(shí)間,單位是秒,默認(rèn)是60秒(超時(shí)后默認(rèn)mydumper將會(huì)退出)
-K, --kill-long-queries Kill long running queries (instead of aborting)殺掉長(zhǎng)查詢(xún) (不退出)
-D, --daemon Enable daemon mode啟用守護(hù)進(jìn)程模式,守護(hù)進(jìn)程模式以某個(gè)間隔不間斷對(duì)數(shù)據(jù)庫(kù)進(jìn)行備
-I, --snapshot-interval dump快照間隔時(shí)間,默認(rèn)60s,需要在daemon模式下
-L, --logfile 使用的日志文件名(mydumper所產(chǎn)生的日志), 默認(rèn)使用標(biāo)準(zhǔn)輸出
--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來(lái)減少采集metadata所造成的鎖時(shí)間,需要 SUPER 權(quán)限
--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 連接的主機(jī)名
-u, --user 用來(lái)備份的用戶(hù)名
-p, --password 用戶(hù)密碼
-P, --port 連接端口
-S, --socket 使用socket通信時(shí)的socket文件
-t, --threads 開(kāi)啟的備份線(xiàn)程數(shù),默認(rèn)是4
-C, --compress-protocol 壓縮與mysql通信的數(shù)據(jù)
-V, --version 顯示版本號(hào)
-v, --verbose 輸出信息模式, 0 = silent, 1 = errors, 2 = warnings, 3 = info, 默認(rèn)為2