matrixone icon indicating copy to clipboard operation
matrixone copied to clipboard

[Feature Request]: Snapshot BR

Open LiSong0214 opened this issue 2 years ago • 3 comments

Is there an existing issue for the same feature request?

  • [X] I have checked the existing issues.

Is your feature request related to a problem?

No response

Describe the feature you'd like

PRD:https://doc.weixin.qq.com/doc/w3_AZUAugYIAOcs4alj5J6TpS2c3sP2H?scode=AJsA6gc3AA8x2DA4ieAZUAugYIAOc 需求讨论:https://doc.weixin.qq.com/doc/w3_AZUAugYIAOc4BfHbkHHSCC6R1j8eq?scode=AJsA6gc3AA8bPG5MBhAZUAugYIAOc 1、将集群/单机所有的数据还原到最近 N 天的任意时刻 2、将集群/单机所有的数据还原到某个确定时刻 3、将集群中某个租户/库/表的数据还原到最近 N 天的任意时刻 3、将集群中某个租户/库/表的数据还原到某个确定时刻

Describe implementation you've considered

No response

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

No response

LiSong0214 avatar Nov 24 '23 10:11 LiSong0214

dup with #11492

dengn avatar Jan 15 '24 10:01 dengn

dev design:https://github.com/matrixorigin/docs/pull/272#pullrequestreview-1916370081

LiSong0214 avatar Mar 06 '24 03:03 LiSong0214

dup with #11492

#11492 的需求范围定为租户级别的全量数据拷贝备份吧。

LiSong0214 avatar Mar 06 '24 03:03 LiSong0214

快照备份优化:https://github.com/matrixorigin/matrixone/issues/17537

LiSong0214 avatar Jul 15 '24 09:07 LiSong0214

系统租户恢复系统租户/database/table,测试已完成; 系统租户恢复普通租户,测试已完成; 系统租户恢复普通租户到新租户,测试已完成; 普通租户恢复普通租户/database/table,测试已完成

遗留bug,均在 #https://github.com/matrixorigin/MO-Cloud/issues/3138跟踪

Ariznawlll avatar Sep 03 '24 09:09 Ariznawlll

the feature is done. fix bugs in the future

XuPeng-SH avatar Oct 09 '24 02:10 XuPeng-SH

snapshot测试内容:

1. 创建snapshot
   系统租户为系统租户创建snapshot、普通租户为普通租户创建snapshot、系统租户为集群创建snapshot

2. 根据snapshot恢复
   系统租户恢复系统租户account/dababase/table到sys租户;
   系统租户恢复普通租户account到普通租户;
   系统租户恢复普通租户account到新租户;
   普通租户恢复普通租户account/database/table到普通租户;
   集群级别的snapshot恢复集群,恢复租户到当前租户.

Ariznawlll avatar Oct 24 '24 11:10 Ariznawlll

已知限制:

1. 该版本暂不支持开始恢复对象时,正在访问该对象的sql(恢复 sql 除外)会被立即中断;正在恢复对象时,不允许新的 sql 访问该对象.
2. 无法恢复已经被删除的account;
3. sql方式不支持新建租户并恢复数据到该租户

Ariznawlll avatar Oct 28 '24 08:10 Ariznawlll

遗留问题issue跟踪,该feature关闭

heni02 avatar Jun 10 '25 03:06 heni02