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! 代表备份完成

分享名称:innobackupex远程备份
标题网址:https://www.cdcxhl.com/article12/jcghgc.html

成都网站建设公司_创新互联,为您提供外贸建站小程序开发移动网站建设网站设计公司网站维护营销型网站建设

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

绵阳服务器托管