当前位置:网站首页>xtrabackup 的使用
xtrabackup 的使用
2022-07-29 05:20:00 【JACK-JIE】
xtrabackup 的使用
一、安装包准备
- 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
二、安装
- 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
三、全量备份
- 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
四、增量备份
- 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
五、恢复
- 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/
边栏推荐
- Print out all prime numbers between 1-100
- 机器学习让文字识别更简单:Kotlin+MVVM+华为ML Kit
- 打印出1-100之间的所有质数
- 华为2020校招笔试编程题 看这篇就够了(上)
- sql-server 数据表的简单操作
- WIN10 编译ffmpeg(包含ffplay)
- From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
- “山东大学移动互联网开发技术教学网站建设”项目实训日志五
- Go|Gin 快速使用Swagger
- Okaleido tiger logged into binance NFT on July 27, and has achieved good results in the first round
猜你喜欢
随机推荐
Move protocol global health declaration, carry out the health campaign to the end
焕然一新,swagger UI 主题更改
北京宝德&TaoCloud共建信创之路
How to survive in the bear market of encryption market?
The completely decentralized programming mode does not need servers or IP, just like a aimless network extending everywhere
DAY6:利用 PHP 编写登陆页面
加密资产熊市之下,PlatoFarm的策略玩法依旧能获得稳定收益
MySQL decompressed version windows installation
Go|gin quickly use swagger
Fvuln automated web vulnerability detection tool
Countdown of the uniapp component (such as the countdown to reading the agreement and the countdown to completing learning)
Get the number of daffodils
CMD window under Windows connects to MySQL and operates the table
XDFS&空天院HPC集群典型案例
D3.JS 纵向关系图(加箭头,连接线文字描述)
DAY15:文件包含漏洞靶场手册(自用 file-include 靶场)
Similarities and differences between REM and PX and EM
“山东大学移动互联网开发技术教学网站建设”项目实训日志七
Relationship between redrawing and reflow
Print out all prime numbers between 1-100









