当前位置:网站首页>innobackupex增量备份
innobackupex增量备份
2022-04-23 13:18:00 【中国爱我们】
#进行第一次全备
[root@shou ~]#innobackupex --defaults-file=/usr/local/mysql/etc/my.cnf --host=127.0.0.1 --port=3306 --user=root --password=****** ./restore
#进行第一次增备,基于上次的全备
[root@shou ~]#innobackupex ---defaults-file=/usr/local/mysql/etc/my.cnf --host=127.0.0.1 --port=3306 --user=root --password=****** --incremental ./restore/incer1 --incremental-basedir=./restore/2022-04-23_11-39-31
#进行第二次全备,基于第一次增备
[root@shou ~]#innobackupex ---defaults-file=/usr/local/mysql/etc/my.cnf --host=127.0.0.1 --port=3306 --user=root --password=****** --incremental ./restore/incer2 --incremental-basedir=./restore/incer1/2022-04-23_11-47-10
##########################恢复时进行数据整合####################################################
对整合的开始备份集——全备集应用日志,并指定"--redo-only"表示开始进入日志追加
innobackupex --apply-log --use-memory=1G --redo-only ./restore/2022-04-23_11-39-31/
对第一个增备集进行"准备",将其追加到全备集中
innobackupex --apply-log --use-memory=1G --redo-only ./restore/2022-04-23_11-39-31/ --incremental-dir=./restore/incer1/2022-04-23_11-47-10/
对第二个增备集进行"准备",将其追加到全备集中,但是不再应用"--redo-only",表示整合的结束点
innobackupex --apply-log --use-memory=1G ./restore/2022-04-23_11-39-31/ --incremental-dir=./restore/incer2/2022-04-23_11-53-19/
对整合完成的全备集进行一次整体的"准备"
innobackupex --apply-log --use-memory=1G ./restore/2022-04-23_11-39-31/
###################进行数据的恢复#############################
innobackupex --defaults-file=/usr/local/mysql3308/etc/my.cnf --copy-back ./restore/2022-04-23_11-39-31/
###############修改属主属组并启动mysqld3308###########
chown mysql:mysql -R /usr/local/mysql3308/data && systemctl start mysqld3308
版权声明
本文为[中国爱我们]所创,转载请带上原文链接,感谢
https://blog.51cto.com/u_7469027/5248505
边栏推荐
- Playwright controls local Google browsing to open and download files
- SHA512 / 384 principle and C language implementation (with source code)
- Lpddr4 notes
- Riscv MMU overview
- The first lesson is canvas, showing a small case
- 基于uniapp异步封装接口请求简介
- 【行走的笔记】
- MySQL5.5安装教程
- Data warehouse - what is OLAP
- Mui wechat payment pit
猜你喜欢

The use of dcast and melt in R language is simple and easy to understand

vscode小技巧

Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
![[untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie](/img/d1/b0ec21419db0cd3641f5fae8458c50.png)
[untitled] make a 0-99 counter, P1 7 connected to key, P2 connected to nixie tube section, common anode nixie tube, P3 0,P3. 1. Connect the nixie tube bit code. Each time you press the key, the nixie

榜样专访 | 孙光浩:高校俱乐部伴我成长并创业

MySQL5. 5 installation tutorial

Melt reshape decast long data short data length conversion data cleaning row column conversion

CSDN高校俱乐部“名师高校行”——湖南师范大学站

Imx6ull QEMU bare metal tutorial 2: usdhc SD card

mui + hbuilder + h5api模拟弹出支付样式
随机推荐
CSDN高校俱乐部“名师高校行”——湖南师范大学站
【动态规划】221. 最大正方形
Hbuilderx + uniapp packaging IPA submission app store stepping on the pit
FatFs FAT32 learning notes
The first lesson is canvas, showing a small case
Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
CMSIS cm3 source code annotation
「玩转Lighthouse」轻量应用服务器自建DNS解析服务器
Summary of request and response and their ServletContext
CSDN College Club "famous teacher college trip" -- Hunan Normal University Station
[point cloud series] relationship based point cloud completion
Solve the problem of Oracle Chinese garbled code
Mui + hbuilder + h5api simulate pop-up payment style
"Xiangjian" Technology Salon | programmer & CSDN's advanced road
Imx6ull QEMU bare metal tutorial 1: GPIO, iomux, I2C
These vscode extensions are my favorite
SPI NAND flash summary
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
Data warehouse - what is OLAP
MySQL -- 16. Data structure of index