当前位置:网站首页>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
边栏推荐
- 初鉴canvas,展示个小小的小案例
- According to the salary statistics of programmers in June 2021, the average salary is 15052 yuan. Are you holding back?
- @优秀的你!CSDN高校俱乐部主席招募!
- Metalama简介4.使用Fabric操作项目或命名空间
- AUTOSAR from introduction to mastery 100 lectures (86) - 2F of UDS service foundation
- 4.22 study record (you only did water problems in one day, didn't you)
- Three channel ultrasonic ranging system based on 51 single chip microcomputer (timer ranging)
- [point cloud series] foldingnet: point cloud auto encoder via deep grid deformation
- C语言之字符串与字符数组的区别
- 9419 page analysis of the latest first-line Internet Android interview questions
猜你喜欢

vscode小技巧
![[official announcement] Changsha software talent training base was established!](/img/ee/0c2775efc4578a008c872022a95559.png)
[official announcement] Changsha software talent training base was established!

C语言之字符串与字符数组的区别

mui + hbuilder + h5api模拟弹出支付样式
![[point cloud series] neural opportunity point cloud (NOPC)](/img/ba/24417762ef5c52d2d6b57f18a3b0a2.png)
[point cloud series] neural opportunity point cloud (NOPC)

three. JS text ambiguity problem

The filter() traverses the array, which is extremely friendly

X509 parsing

LeetCode_DFS_中等_695.岛屿的最大面积
![[point cloud series] relationship based point cloud completion](/img/87/153a78a229a2f2d38c7b2b5ef0fb6a.png)
[point cloud series] relationship based point cloud completion
随机推荐
Uniapp image import local image not displayed
100 GIS practical application cases (52) - how to keep the number of rows and columns consistent and aligned when cutting grids with grids in ArcGIS?
在 pytorch 中加载和使用图像分类数据集 Fashion-MNIST
AUTOSAR from introduction to mastery 100 lectures (52) - diagnosis and communication management function unit
nodejs + mysql 实现简单注册功能(小demo)
[point cloud series] learning representations and generative models for 3D point clouds
Pyqt5 store opencv pictures into the built-in sqllite database and query
Temperature and humidity monitoring + timing alarm system based on 51 single chip microcomputer (C51 source code)
Request和Response及其ServletContext总结
torch. Where can transfer gradient
FFmpeg常用命令
The filter() traverses the array, which is extremely friendly
web三大组件之Servlet
Conflict between Mui picker and drop-down refresh
[untitled] PID control TT encoder motor
[point cloud series] foldingnet: point cloud auto encoder via deep grid deformation
100000 college students have become ape powder. What are you waiting for?
Lpddr4 notes
[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
Feature Engineering of interview summary