-
Notifications
You must be signed in to change notification settings - Fork 209
Restore specific schema from archive #236
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
Conversation
|
It answers to issue #121 |
|
I find this somewhat confusing.
Can we build a table here of all the possible scenarios? I still am confused, which means users likely will be as well. |
|
@deitch Thank you for your feedback! |
|
This really will be easier if all dumps are So what are all of the possible permutations? |
|
We check if there are multiple files in the archive, so it doesn't really matter whether the backup was made with From what I understood it's not possible to restore multiple schemas if |
|
I updated the README, tell me if it's clearer now |
|
Let's see. When restoring:
Is that it? It is a bit confusing. |
|
Yes, that's how it should work. |
|
I still find it confusing, but have yet to come up with something better. That means:
I think I would just add a small section to the readme under the restore section describing the above, and call it a day |
|
Another day, another try to make my explication clearer |
|
Yeah, that looks good. I am a real stickler for documentation (maybe because I have been tripped up so many times). Let's let CI run. |
|
I totally understand your point. When writing documentation, you often write things that make sense to you as the person who made the change, but it isn't always helpful for others. I like to make things right, so your feedbacks were really appreciated. |
Use the
DB_NAMESvariable withoutSINGLE_DATABASEto specify one or more databases to restore from a backup archive generated withDB_DUMP_BY_SCHEMA.I am not a bash expert, so feel free to test and review my code. I tested it for simple cases without errors. Also, as I made it, there can be issues when schema names are overlapping.