当前位置:网站首页>Use of xtrabackup
Use of xtrabackup
2022-07-29 05:55:00 【JACK-JIE】
xtrabackup Use
One 、 Installation package preparation
- wget https://downloads.mysql.com/archives/get/p/23/file/mysql-community-libs-compat-5.7.30-1.el7.x86_64.rpm
- wget https://downloads.mysql.com/archives/get/p/23/file/mysql-community-libs-5.7.30-1.el7.x86_64.rpm
- wget https://downloads.mysql.com/archives/get/p/23/file/mysql-community-common-5.7.30-1.el7.x86_64.rpm
- wget https://downloads.percona.com/downloads/Percona-XtraBackup-2.4/Percona-XtraBackup-2.4.4/binary/redhat/7/x86_64/percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm
Two 、 install
- rpm -ivh mysql-community-common-5.7.30-1.el7.x86_64.rpm
- rpm -ivh mysql-community-libs-5.7.30-1.el7.x86_64.rpm
- rpm -ivh mysql-community-libs-compat-5.7.30-1.el7.x86_64.rpm
- yum -y install percona-xtrabackup-24-2.4.4-1.el7.x86_64.rpm
3、 ... and 、 Full volume backup
- innobackupex --defaults-file=/etc/my.cnf --socket=/data/mysql/logs/mysql.sock --user=root --password=****** /data/backup/xbk_quanbei/$(date +%Y-%m-%d) --no-timestamp
Four 、 Incremental backup
- innobackupex --defaults=/etc/my.cnf --host=192.168.10.28 --port=3306 --user=root --password=****** --socket=/data/mysql/logs/mysql.sock --incremental /data/backup/xbk_zengliang/ ( d a t e + (date +%Y-%m-%d_%H-%M) --incremental-basedir=/data/backup/xbk_quanbei/ (date+(ls -tl /data/backup/xbk_quanbei/ |sed -n ‘2p’| awk ‘{print $9}’) --no-timestamp
5、 ... and 、 recovery
- innobackupex --apply-log --redo-only /data/backup/xbk_quanbei/2022-07-22/ --redo-only
- innobackupex --apply-log --redo-only /data/backup/xbk_quanbei/2022-07-22/ --intremental-dir=/data/backup/xbk_zengliang/2022-07-22_10-35/
- innobackupex --apply-log /data/backup/xbk_quanbei/2022-07-22/
- innobackupex --copy-back /data/backup/xbk_quanbei/2022-07-22/
边栏推荐
- xtrabackup 的使用
- 剑指核心-TaoCloud全闪SDS助力构建高性能云服务
- Reporting Services- Web Service
- SSM integration
- Breaking through the hardware bottleneck (I): the development of Intel Architecture and bottleneck mining
- Refresh, swagger UI theme changes
- Under the bear market of encrypted assets, platofarm's strategy can still obtain stable income
- C# 连接 SharepointOnline WebService
- MySQL decompressed version windows installation
- 与张小姐的春夏秋冬(2)
猜你喜欢
XDFS&中国日报社在线协同编辑平台典型案例
The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
一文读懂Move2Earn项目——MOVE
Most PHP programmers don't understand how to deploy safe code
超简单集成HMS ML Kit 实现parental control
Machine learning makes character recognition easier: kotlin+mvvm+ Huawei ml Kit
ssm整合
D3.JS 纵向关系图(加箭头,连接线文字描述)
Training log 4 of the project "construction of Shandong University mobile Internet development technology teaching website"
Go|gin quickly use swagger
随机推荐
Super simple integration of HMS ml kit to realize parent control
Changed crying, and finally solved cannot read properties of undefined (reading 'parsecomponent')
Gluster cluster management analysis
从Starfish OS持续对SFO的通缩消耗,长远看SFO的价值
Nailing alarm script
【数据库】数据库课程设计一一疫苗接种数据库
识变!应变!求变!
The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
MySQL decompressed version windows installation
CMD window under Windows connects to MySQL and operates the table
D3.JS 纵向关系图(加箭头,连接线文字描述)
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
“山东大学移动互联网开发技术教学网站建设”项目实训日志六
【go】defer的使用
超简单集成HMS ML Kit 人脸检测实现可爱贴纸
How to make interesting apps for deep learning with zero code (suitable for novices)
Get the number of daffodils
File文件上传的使用(2)--上传到阿里云Oss文件服务器
以‘智’提‘质|金融影像平台解决方案
SSM integration