当前位置:网站首页>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.rpmTest whether the warehouse contains the latest version of resources
yum list | grep perconainstall 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 stopExecute 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/backupChange permissions for the newly created directory
chown -R mysql. /app/mysql/datastart-up mysql service
service mysql start
边栏推荐
- String转Base64
- dataX使用指南
- RCNN、Fast-RCNN、Faster-RCNN介绍
- ZUCC_编译语言原理与编译_实验05 正则表达式、有限自动机、词法分析
- 小黑ai4code代码baseline啃食1
- [xinliu-s6 new model +sa 3-star Xinghai] the new two-way server of the third generation chip was launched and the product was updated~
- Opencv实现图像的基本变换
- Blue screen error UNMOUNTABLE boot volume of the solution
- LabVIEW finds prime numbers in an array of n elements
- Cloudbase database migration scheme
猜你喜欢
随机推荐
Markdown to realize text link jump
jwt(json web token)
ZUCC_编译语言原理与编译_大作业
Variable declaration and some special variables in shell
How to mount a USB hard disk with NTFS file format under RHEL5 system
(pkcs1) RSA public private key PEM file parsing
RCNN、Fast-RCNN、Faster-RCNN介绍
Rust procedure macro simply imitates Lombok function
Blue screen error UNMOUNTABLE boot volume of the solution
ZUCC_编译语言原理与编译_实验05 正则表达式、有限自动机、词法分析
利用ngrok做内网穿透
分布式 | 如何与 DBLE 进行“秘密通话”
AUTO PWN
Qt源码分析--QObject(2)
【关于运维和网工的差别,一文说透】
Use cpulimit to free up your CPU
Pat 1157: school anniversary
2021-03-04 comp9021 class 6 notes
List of Li Bai's 20 most classic poems
定时备份数据库脚本








