当前位置:网站首页>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 contrôle l'ouverture de la navigation Google locale et télécharge des fichiers
- [point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
- These vscode extensions are my favorite
- Introduction to metalama 4 Use fabric to manipulate items or namespaces
- async void 导致程序崩溃
- ESP32 VHCI架构传统蓝牙设置scan mode,让设备能被搜索到
- [untitled] PID control TT encoder motor
- [Technical Specification]: how to write technical documents?
- Three channel ultrasonic ranging system based on 51 single chip microcomputer (timer ranging)
- Async void provoque l'écrasement du programme
猜你喜欢
51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
MySQL5. 5 installation tutorial
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
C语言之字符串与字符数组的区别
Ding ~ your scholarship has arrived! C certified enterprise scholarship list released
[quick platoon] 215 The kth largest element in the array
[point cloud series] pointfilter: point cloud filtering via encoder decoder modeling
解决虚拟机中Oracle每次要设置ip的问题
Analysis of the latest Android high frequency interview questions in 2020 (BAT TMD JD Xiaomi)
[point cloud series] Introduction to scene recognition
随机推荐
[point cloud series] Introduction to scene recognition
[point cloud series] multi view neural human rendering (NHR)
AUTOSAR from introduction to mastery 100 lectures (83) - bootloader self refresh
(personal) sorting out system vulnerabilities after recent project development
XML
SPI NAND flash summary
Playwright controls local Google browsing to open and download files
Uniapp image import local image not displayed
Super 40W bonus pool waiting for you to fight! The second "Changsha bank Cup" Tencent yunqi innovation competition is hot!
[Technical Specification]: how to write technical documents?
【动态规划】221. 最大正方形
[point cloud series] neural opportunity point cloud (NOPC)
[51 single chip microcomputer traffic light simulation]
Metalama简介4.使用Fabric操作项目或命名空间
这几种 VSCode 扩展是我最喜欢的
decast id.var measure. Var data splitting and merging
[tensorflow] sharing mechanism
Machine learning -- naive Bayes
CSDN高校俱乐部“名师高校行”——湖南师范大学站
Ding ~ your scholarship has arrived! C certified enterprise scholarship list released