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 for additional mysqldump options (events, triggers, routines, etc.) #346

Open
dabico opened this issue Sep 16, 2024 · 3 comments
Open

Comments

@dabico
Copy link

dabico commented Sep 16, 2024

I did not manage to find any information in the documentation (both the dump --help and in the configuration.md file), but is there a way I can pass custom flags to the dump command to include objects like triggers and events in my dump? For example, I use the following for mysqldump:

[mysqldump]
quick
events
triggers
routines
single-transaction
max-allowed-packet=1G
@deitch
Copy link
Collaborator

deitch commented Sep 16, 2024

That is because mysql-backup (v1.0.0+ versions) doesn't actually use mysqldump. It is not a script, but a single binary, that incorporates mysql functionality to create the dump.

If there is functionality missing, definitely open to adding it; that is how it has grown to this point. And Pull Requests obviously are much appreciated.

@dabico
Copy link
Author

dabico commented Sep 16, 2024

Thank you for the fast answer! 😄

I've never programmed in Go, but I'll take a glance at the code and give it a try. Always wanted to learn the language too.

@deitch
Copy link
Collaborator

deitch commented Sep 16, 2024

Sure thing. Feel free to ask questions here.

@dabico dabico changed the title Ways to pass custom mysqldump options? Support for additional mysqldump options (events, triggers, routines, etc.) Sep 16, 2024
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