24. xtrabackup 使い方
リモートサーバへバックアップ
# time innobackupex-1.5.1 --user root --password password
--remote-host=user@host --slave-info /backup/xtrabackup/
scp の optionも変更できます。
--scpopt=SCP-OPTIONS
This option specifies the command line options to pass to scp when
the option --remost-host is specified. The option accepts a string
argument. If the option is not specified, the default options are
"-Cp -c arcfour".
25. xtrabackup 使い方
その他気になったoption
--parallel=NUMBER-OF-THREADS
This option specifies the number of threads the xtrabackup child
process should use to back up files concurrently. The option accepts
an integer argument. It is passed directly to xtrabackup's
--parallel option. See the xtrabackup documentation for details.
--safe-slave-backup
Stop slave SQL thread and wait to start backup until
Slave_open_temp_tables in "SHOW STATUS" is zero. If there are no
open temporary tables, the backup will take place, otherwise the SQL
thread will be started and stopped until there are no open temporary
tables. The backup will fail if Slave_open_temp_tables does not
become zero after --safe-slave-backup-timeout seconds. The slave SQL
thread will be restarted when the backup finishes.
29. mydumper --help
# mydumper --help
Usage:
mydumper [OPTION...] multi-threaded MySQL dumping
Help Options:
-?, --help Show help options
Application Options:
-B, --database Database to dump
-T, --tables-list Comma delimited table list to dump (does not exclude regex option)
-o, --outputdir Directory to output files to, default ./export-*/
-s, --statement-size Attempted size of INSERT statement in bytes, default 1000000
-r, --rows Try to split tables into chunks of this many rows
-c, --compress Compress output files
-e, --build-empty-file Build dump files even if no data available from table
-x, --regex Regular expression for 'db.table' matching
-i, --ignore-engines Comma delimited list of storage engines to ignore
-m, --no-schemas Do not dump table schemas with the data
-l, --long-query-guard Set long query timer in seconds, default 60
-k, --kill-long-queries Kill long running queries (instead of aborting)
-b, --binlogs Get the binary logs as well as dump data
-d, --binlog-outdir Directory to output the binary logs to, default ./export/binlogs/
-h, --host The host to connect to
-u, --user Username with privileges to run the dump
-p, --password User password
-P, --port TCP/IP port to connect to
-S, --socket UNIX domain socket file to use for connection
-t, --threads Number of threads to use, default 4
-C, --compress-protocol Use compression on the MySQL connection
-V, --version Show the program version and exit
-v, --verbose Verbosity of output, 0 = silent, 1 = errors, 2 = warnings, 3 = info, default 2