网站建设资讯

NEWS

网站建设资讯

innobackupex远程备份-创新互联

应用于DC1 -> DC2

创新互联自2013年创立以来,先为上虞等服务建站,上虞等地企业,进行企业商务咨询服务。为上虞企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

或者 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

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

170619 16:57:07 [01] Streaming ./pcik_log_dep/t_trade.frm to

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

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

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

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

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


文章题目:innobackupex远程备份-创新互联
链接URL:http://cdweb.net/article/cdgess.html