應(yīng)用于DC1 -> DC2
創(chuàng)新互聯(lián)自2013年創(chuàng)立以來,先為上虞等服務(wù)建站,上虞等地企業(yè),進(jìn)行企業(yè)商務(wù)咨詢服務(wù)。為上虞企業(yè)網(wǎng)站制作PC+手機(jī)+微官網(wǎng)三網(wǎng)同步一站式服務(wù)解決您的所有建站問題。或者 mysql replication
DC2,接收端:
監(jiān)聽接口1234
nc -l 1234 | tar ixvf - 2> xtrabackup.log
root@python-develpment:/script/slave# nc -l 1234 | tar ixvf - 2> xtrabackup.log
DC1,發(fā)送端,備份端
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!
出現(xiàn)completed OK! 代表備份完成
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點(diǎn)與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。