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

Support backup schema only #138

Closed
therealnb opened this issue Jan 7, 2021 · 1 comment
Closed

Support backup schema only #138

therealnb opened this issue Jan 7, 2021 · 1 comment
Milestone

Comments

@therealnb
Copy link

Hi Alex,

This is a suggestion based on my recent experience with testing backups. I'd like your thoughts on it.

Assume two replicated servers s1 and s2. I backup a table in s1.

If I then drop the table in s1 and restore it, it also replicates from s2. I get double the records. (I know, I don't need to restore the data in this case)

If I drop on cluster, or drop the table on both servers manually, then restore to s1, s2 is still missing a schema. I could recreate the schema by hand, but that requires some coordination between ddl and backups. I can also download the backup and restore the schema only and let replication take care of the data - which works perfectly.

The only problem with the last approach is that I have to download the whole of the data, just to get the schema, which seems wasteful.

This proposal is to allow the backup of the schema only, so that I can backup the schema and data on s1 and schema only on s2. Hope this makes sense.

Alternatively, there may be a simpler way of doing this. I'll update here if I find something.

@AlexAkulov AlexAkulov added this to the 1.0.0 milestone Jan 26, 2021
@AlexAkulov
Copy link
Collaborator

Added in v1.0.0-beta1

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

No branches or pull requests

2 participants