Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bmatican opened this issue Jun 10, 2021 · 1 comment
Open

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

bmatican opened this issue Jun 10, 2021 · 1 comment
Assignees
Labels
area/docdb YugabyteDB core features kind/enhancement This is an enhancement of an existing feature priority/low Low priority

Comments

@bmatican
Copy link
Contributor

bmatican commented Jun 10, 2021

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 bmatican added the area/docdb YugabyteDB core features label Jun 10, 2021
@bmatican bmatican added the priority/low Low priority label Feb 10, 2022
@bmatican
Copy link
Contributor Author

Marking this as lower pri.

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

  • Within that window, you can quickly restore DML and DDL changes.
  • Outside that window, you would need to rely on backups sitting on external storage.

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

  • before a DDL migration, take backup1
  • perform the migration
  • afterwards, take backup2

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

@yugabyte-ci yugabyte-ci added the kind/bug This issue is a bug label Jun 8, 2022
@yugabyte-ci yugabyte-ci added kind/enhancement This is an enhancement of an existing feature and removed kind/bug This issue is a bug labels Jul 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features kind/enhancement This is an enhancement of an existing feature priority/low Low priority
Projects
None yet
Development

No branches or pull requests

6 participants