mysql xtrabackup 增量复制


mysql xtrabackup 增量复制

 

官方文档:https://www.percona.com/doc/percona-xtrabackup/LATEST/backup_scenarios/incremental_backup.html

 

 

***********************

增量复制

 

xtrabackup支持增量复制:只复制自上次备份后发生变化的数据

xtrabackup supports incremental backups, which means that they 
can copy only the data that has changed since the last backup

You can perform many incremental backups between each full backup, 
so you can set up a backup process such as 
a full backup once a week and an incremental backup every day, 
or full backups every day and incremental backups every hour
# 每周进行一次全量复制,并且每天进行一次增量复制
# 或者每天进行一次全量复制,每小时进行一次增量复制

 

增量复制原理

# InnoDB数据页有一个LSN,增量复制复制当前LSN比上次全量复制或者增量复制LSN大的数据页
An incremental backup copies each page whose LSN is newer than the previous incremental or 
full backup’s LSN. 

# 有两种算法查找需要复制的数据页
There are two algorithms in use to find the set of such pages to be copied. 

# 第一种:扫描所有的数据页
The first one, available with all the server types and versions, 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值