innobackupex 远程备份

应用于DC1 -> DC2

或者 mysql replication

DC2,接收端:

监听接口1234

nc -l 1234 | tar ixvf - 2> xtrabackup.log

root@python-develpment:/script/slave# nc -l 1234 | tar ixvf - 2> xtrabackup.log

DC1,发送端,备份端

innobackupex --defaults-file=/data/3308/my.cnf --user=root --password=123456 --stream=tar ./ |  nc 192.168.134.130 1234

[root@MysqL-master backup]# innobackupex --defaults-file=/data/3308/my.cnf --user=root --password=123456 --slave-info  --stream=tar ./ |  nc 192.168.134.130 1234

170619 16:57:07 [01] Streaming ./pcik_log_dep/t_redbag_get.frm to <STDOUT>

170619 16:57:07 [01]        ...done

170619 16:57:07 [01] Streaming ./pcik_log_dep/t_Trade.frm to <STDOUT>

170619 16:57:07 [01]        ...done

170619 16:57:07 [01] Streaming ./pcik_log_dep/t_mail_del.frm to <STDOUT>

170619 16:57:07 [01]        ...done

170619 16:57:07 Finished backing up non-InnoDB tables and files

170619 16:57:07 [00] Streaming xtrabackup_slave_info

170619 16:57:07 [00]        ...done

170619 16:57:07 [00] Streaming xtrabackup_binlog_info

170619 16:57:07 [00]        ...done

170619 16:57:07 Executing FLUSH NO_WRITE_TO_binlog ENGINE LOGS...

xtrabackup: The latest check point (for incremental): '370373412'

xtrabackup: Stopping log copying thread.

.170619 16:57:07 >> log scanned up to (370373421)

170619 16:57:07 Executing UNLOCK TABLES

170619 16:57:07 All tables unlocked

170619 16:57:07 [00] Streaming ib_buffer_pool to <STDOUT>

170619 16:57:07 [00]        ...done

170619 16:57:07 Backup created in directory '/backup'

MysqL binlog position: filename 'MysqL-bin.000017', position '4497'

MysqL slave binlog position: master host '127.0.0.1', filename 'MysqL-bin.000028', position '154'

170619 16:57:07 [00] Streaming backup-my.cnf

170619 16:57:07 [00]        ...done

170619 16:57:07 [00] Streaming xtrabackup_info

170619 16:57:07 [00]        ...done

xtrabackup: Transaction log of lsn (370373412) to (370373421) was copied.

170619 16:57:07 completed OK!

出现completed OK! 代表备份完成

相关文章

这篇文章主要介绍“hive和mysql的区别是什么”,在日常操作中...
这篇“MySQL数据库如何改名”文章的知识点大部分人都不太理解...
这篇文章主要介绍“mysql版本查询命令是什么”的相关知识,小...
本篇内容介绍了“mysql怎么修改字段的内容”的有关知识,在实...
这篇文章主要讲解了“mysql怎么删除unique约束”,文中的讲解...
今天小编给大家分享一下mysql怎么查询不为空的字段的相关知识...