-
Notifications
You must be signed in to change notification settings - Fork 848
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
Improve db scripts #2608
Improve db scripts #2608
Conversation
Undefined variables and failed piped commands finish execution.
The fact that the numbers will end in, for example, 10/10 doesn't matter, since the messaging clearly states that it's the last one being processed.
Thanks for opening this pull request! Make sure
|
Not sure why the provisioners are failing with |
Fixed undefined variable issues |
08029ae
to
0117119
Compare
This is a backport from the port I've made of this scripts from VVV into a docker solution we're currently using (and I intend to slowly port back to VVV).
Basically allows to:
Allow to restore specific databases with
db_restore
By running
db_restore db_name_1 db_name_2
you can only restore specific databases only.Force restoration when running
db_restore
This allows to run
db_restore --force
ordb_restore -f
to delete all databases being restored before restoring them. Allows to easily force restore to a dump. Most useful in conjunction with specific databases usageMinor other improvements
sys
database when backing up or restoring.Didn't test this myself on VVV (because i cannot run it right now). Will see how the provisioner goes, but none of these changes should be breaking.
Once we agree if this is to be merged, I'll update the CHANGELOG.md file.
Checks
develop
branch not thestable
branch.