yugabyte / yugabyte-db

YugabyteDB - the cloud native distributed SQL database for mission-critical applications.
https://www.yugabyte.com
Other
8.99k stars 1.07k forks source link

[docdb] PITR: Metadata restore from external backups #8847

Open bmatican opened 3 years ago

bmatican commented 3 years ago

Jira Link: DB-1487 As a follow-up to #8846, we should figure out a way to allow metadata (DDL) restores from external backups.

For in cluster PITR, we achieve this by also taking a snapshot of the sys_catalog master tablet. One option would be to also start doing this for the normal backup operations and store this in external storage, thus allowing us to, on restore, look at the existing metadata and use the current PITR logic.

bmatican commented 2 years ago

Marking this as lower pri.

With in-cluster PITR, you configure a retention window.

Operationally, for being able to restore before a set of DDL changes, we can accomplish this as follows

If you would need to go back to before the migration, restore from backup1. If you need to go back to after the migration, restore from backup2. cc @dataindataout