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

RFC: Databend Disaster Recovery #1548

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Jan 9, 2025

Xuanwo and others added 6 commits January 9, 2025 21:11
Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
databend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 9, 2025 3:49pm

`BACKUP` and `RESTORE` database:

```sql
BACKUP DATABASE <database_name>
Copy link
Member

@SkyFan2002 SkyFan2002 Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can allow users to specify a single database, multiple databases, or all databases within one SQL statement.


During the backup process, Databend reads existing table snapshots to generate a `BackupManifest` file, dumps metadata from the metasrv, and copies all related data files to the backup storage.

During the restore process, Databend reads the `BackupManifest` file from the backup storage, copies all related data files to their original location, and restores the metadata to the metasrv.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "original location" refer to?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants