当前位置:网站首页>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/
边栏推荐
- Gluster cluster management analysis
- NIFI 改UTC时间为CST时间
- Huawei 2020 school recruitment written test programming questions read this article is enough (Part 1)
- The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
- 钉钉告警脚本
- MySQL decompressed version windows installation
- 数组的基础使用--遍历循环数组求出数组最大值,最小值以及最大值下标,最小值下标
- 并发编程学习笔记 之 工具类Semaphore(信号量)
- Ribbon学习笔记一
- 手撕ORM 框架(泛型+注解+反射)
猜你喜欢

Intelligent security of the fifth space ⼤ real competition problem ----------- PNG diagram ⽚ converter

“山东大学移动互联网开发技术教学网站建设”项目实训日志一

Starfish OS:以现实为纽带,打造元宇宙新范式

Training log 7 of the project "construction of Shandong University mobile Internet development technology teaching website"

How can Plato obtain premium income through elephant swap in a bear market?

Plato Farm有望通过Elephant Swap,进一步向外拓展生态

XDFS&空天院HPC集群典型案例

SSM integration

“山东大学移动互联网开发技术教学网站建设”项目实训日志四

C# 判断用户是手机访问还是电脑访问
随机推荐
Research and implementation of flash loan DAPP
MOVE PROTOCOL全球健康宣言,将健康运动进行到底
The LAAS protocol of defi 2.0 is the key to revitalizing the development of defi track
XDFS&中国日报社在线协同编辑平台典型案例
The completely decentralized programming mode does not need servers or IP, just like a aimless network extending everywhere
并发编程学习笔记 之 工具类CountDownLatch、CyclicBarrier详解
Crypto giants all in metauniverse, and platofarm may break through
并发编程学习笔记 之 工具类Semaphore(信号量)
剑指核心-TaoCloud全闪SDS助力构建高性能云服务
Nailing alarm script
Idea using JDBC to connect mysql database personal detailed tutorial
DCAT batch operation popup and parameter transfer
微信内置浏览器禁止缓存的问题
The difference between link and @import importing external styles
与多家机构战略合作,背后彰显PlatoFarm元宇宙龙头的实力
Markdown语法
Fantom (FTM) surged 45% before the FOMC meeting
File permissions of day02 operation
并发编程学习笔记 之 原子操作类AtomicReference、AtomicStampedReference详解
NIFI 改UTC时间为CST时间