当前位置:网站首页>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/
边栏推荐
- Ribbon学习笔记一
- Move protocol global health declaration, carry out the health campaign to the end
- How can Plato obtain premium income through elephant swap in a bear market?
- 通过简单的脚本在Linux环境实现Mysql数据库的定时备份(Mysqldump命令备份)
- PHP write a diaper to buy the lowest price in the whole network
- 深度学习的趣味app简单优化(适合新手)
- 主流实时流处理计算框架Flink初体验。
- Reporting Services- Web Service
- Read and understand move2earn project - move
- Okaleido Tiger 7.27日登录Binance NFT,首轮已获不俗成绩
猜你喜欢
Plato farm is expected to further expand its ecosystem through elephant swap
Detailed steps of JDBC connection to database
中海油集团,桌面云&网盘存储系统应用案例
Breaking through the hardware bottleneck (I): the development of Intel Architecture and bottleneck mining
Refresh, swagger UI theme changes
裸金属云FASS高性能弹性块存储解决方案
突破硬件瓶颈(一):Intel体系架构的发展与瓶颈挖掘
MySql统计函数COUNT详解
华为2020校招笔试编程题 看这篇就够了(下)
datax安装
随机推荐
微信内置浏览器禁止缓存的问题
浅谈分布式全闪存储自动化测试平台设计
“山东大学移动互联网开发技术教学网站建设”项目实训日志七
Refresh, swagger UI theme changes
Extreme deflation and perpetual motion machine model will promote the outbreak of platofarm
数组的基础使用--遍历循环数组求出数组最大值,最小值以及最大值下标,最小值下标
一文读懂Move2Earn项目——MOVE
DCAT batch operation popup and parameter transfer
Nailing alarm script
day02 作业之文件权限
The difference between link and @import importing external styles
量化开发必掌握的30个知识点【什么是Level-2数据】
Machine learning makes character recognition easier: kotlin+mvvm+ Huawei ml Kit
华为2020校招笔试编程题 看这篇就够了(下)
与张小姐的春夏秋冬(1)
My ideal job, the absolute freedom of coder farmers is the most important - the pursuit of entrepreneurship in the future
How to make interesting apps for deep learning with zero code (suitable for novices)
Thinkphp6 output QR code image format to solve the conflict with debug
Dao race track is booming. What are the advantages of m-dao?
How to PR an open source composer project