当前位置:网站首页>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
边栏推荐
- Uniapp image import local image not displayed
- 解决Oracle中文乱码的问题
- POM of SSM integration xml
- Imx6ull QEMU bare metal tutorial 2: usdhc SD card
- Nodejs + websocket cycle small case
- [point cloud series] summary of papers related to implicit expression of point cloud
- 5 tricky activity life cycle interview questions. After learning, go and hang the interviewer!
- Melt reshape decast long data short data length conversion data cleaning row column conversion
- Feature Engineering of interview summary
- 100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
猜你喜欢

Nodejs + Mysql realize simple registration function (small demo)

Common interview questions and detailed analysis of the latest Android developers in 2020

100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS

Ding ~ your scholarship has arrived! C certified enterprise scholarship list released

2020最新Android大厂高频面试题解析大全(BAT TMD JD 小米)

Xi'an CSDN signed a contract with Xi'an Siyuan University, opening a new chapter in IT talent training

超40W奖金池等你来战!第二届“长沙银行杯”腾讯云启创新大赛火热来袭!

filter()遍历Array异常友好

LeetCode_ DFS_ Medium_ 695. Maximum area of the island

【官宣】长沙软件人才实训基地成立!
随机推荐
Async void provoque l'écrasement du programme
Summary of request and response and their ServletContext
[Technical Specification]: how to write technical documents?
Esp32 vhci architecture sets scan mode for traditional Bluetooth, so that the device can be searched
Imx6ull QEMU bare metal tutorial 2: usdhc SD card
Mysql数据库的卸载
ECDSA signature verification principle and C language implementation
[indicators] precision, recall
MySQL 8.0.11 download, install and connect tutorials using visualization tools
torch. Where can transfer gradient
Feature Engineering of interview summary
[point cloud series] Introduction to scene recognition
Learning notes of AMBA protocol
mui + hbuilder + h5api模拟弹出支付样式
nodejs + mysql 实现简单注册功能(小demo)
9419 page analysis of the latest first-line Internet Android interview questions
decast id.var measure. Var data splitting and merging
STM32 tracking based on open MV
你和42W奖金池,就差一次“长沙银行杯”腾讯云启创新大赛!
CSDN高校俱乐部“名师高校行”——湖南师范大学站