当前位置:网站首页>Xtrabackup for data backup
Xtrabackup for data backup
2022-06-24 08:39:00 【An unreliable programmer】
xtrabackup
XtraBackup(PXB) The tool is Percona Company use perl One of the tools of language development is for MySQL Backup tool for physical hot backup of database , Support MySQl(Oracle)、Percona Server and MariaDB, And all open source , It's the conscience of the industry . Ali's RDS MySQL Physical backup is based on this tool . Because it is backed up by physical copy , So it's very fast , Dozens of G The data is done in a few minutes , And it cleverly uses mysql Features to achieve online hot backup , You don't have to shut down the database like you used to do a physical backup , The full backup and incremental backup of the whole database or part of the database can be completed directly online .
install
Installation warehouse Install the Percona repository
yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-release-0.1-6.noarch.rpm
Test whether the warehouse contains the latest version of resources
yum list | grep percona
install packages
yum install percona-xtrabackup-24
The data backup
- Full volume backup
innobackupex ----defaults-file=/etc/my.cnf --user=root --password=root /root/back
Data recovery
Shut down the database service
service mysql stop
Execute the data recovery command *( Be careful my.cnf Internally configured datadir Directory must be an empty directory , So before restoring data , First datadir To another directory , Then create an empty directory and perform the recovery )
innobackupex --defaults-file=/etc/my.cnf --copy-back --rsync /path/to/backup
Change permissions for the newly created directory
chown -R mysql. /app/mysql/data
start-up mysql service
service mysql start
边栏推荐
- ZUCC_ Principles of compiling language and compilation_ Experiment 05 regular expression, finite automata, lexical analysis
- Pyqt common system events
- A preliminary study of IO model
- api平台通用签名机制
- 【微服务~Nacos】Nacos服务提供者和服务消费者
- ZUCC_编译语言原理与编译_实验02 FSharp OCaml语言
- ZUCC_ Principles of compiling language and compilation_ Experiment 04 language and grammar
- Variable declaration and some special variables in shell
- mysql组合索引的有序性
- leetcode 1642. Furthest Building You Can Reach(能到达的最远的建筑)
猜你喜欢
uniapp 热更新后台管理
Pat 1157: school anniversary
Centos7安装jdk8以及mysql5.7以及Navicat连接虚拟机mysql的出错以及解决方法(附mysql下载出错解决办法)
2021-03-04 comp9021 class 6 notes
ZUCC_编译语言原理与编译_实验08 语法分析 LR 分析
Two methods of QT exporting PDF files
2021-03-09 comp9021 class 7 Notes
成为IEEE学生会员
小黑ai4code代码baseline啃食1
Longhorn installation and use
随机推荐
How to mount a USB hard disk with NTFS file format under RHEL5 system
ZUCC_编译语言原理与编译_实验05 正则表达式、有限自动机、词法分析
获取屏幕宽高工具类
Shell array
常用日期格式符与Qt获取当前时间的办法
ZUCC_ Principles of compiling language and compilation_ Experiment 01 language analysis and introduction
One development skill a day: how to establish P2P communication based on webrtc?
Redis的Cluster集群数据倾斜
Paper notes: multi label learning dm2l
Question 4 - datepicker date selector, disabling two date selectors (start and end dates)
Micro build low code online "quick registration applet" capability
新技术实战,一步步用Activity Results API封装权限申请库
PHP代码加密的几种方案
Several ways you can't move zero (sequel)
Three ways to uninstall Symantec Endpoint Protection Symantec
js中通过key查找和更新对象中指定值的方法
(PKCS1) RSA 公私钥 pem 文件解析
Live broadcast appointment: growth of Mengxin Product Manager
os. path. Pits encountered during the use of join()
Which is the first poem of Tang Dynasty?