-
Notifications
You must be signed in to change notification settings - Fork 195
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
Configuration in a docker-compose.yaml not fully working as expected #347
Comments
Fairly or not, the docs for If you provide specific db names to backup it does those, else it finds all of them here, which does:
The original version of If there is a good case to be made for needing a single |
Thank you for providing this insight. To be honest I did not check if the docs are still valid. For the schemas to exclude the system ones is more of an issue to us as we don't want to recreate all the user account in a recovery scenario. Is this a no-no? |
No it's actually a decent suggestion, to have an option to back up the system tables as well. Leave this open, will try and get to to. If you've got golang skills and want to contribute, that's always welcome. Historically, if I recall correctly, mysqldump excludes system tables, which is why this does too. I have a vague memory of seeing mysqldump source code. |
Maybe you don't need to. I could easily create a second job that explicitly names the system schemas that I want in a backup and have the other run without |
Yeah, but that is a painful UX and requires lots of extra work. We will get to it. |
The easy part for this - CLI flag/config/env var, plus controls to ensure that those tables do not get filtered out - is done on a branch. The hard part, what to do with it, is creating some complexity. Is there any point to dumping the tables in these databases?
So, what are we actually talking about? |
From where I stand today, I would have a use case for You see, I'm still a bit on the fence about my own idea. |
Sure, mysqldump didn't do it. 😁 The original version of this was just a wrapper around mysqldump, so it inherited a lot. As we switched to a native version, we wanted to change only those things that really made sense to do so. Also, implementing each table type was real work in the native version. Worth it, but work nonetheless. To be fair, mysqldump didn't back them up for good reasons, mainly those listed above. If you read their docs, they say that if you want to dump those, ask for them explicitly. IIRC, they also recommend against it (but working off of memory).
You could do something like this using post-backup scripts, if you really wanted to. In any case, all database backups are snapshots in time, valid only at the moment the backup was taken. But I wouldn't want to make any knowledge of that inherent to mysql-backup itself. It is too fraught with danger. I see a few other paths:
I could not comment on the risks of trying to restore |
|
At least they all are base tables. |
I have this setup using docker compose:
Every full hour a backup is being successfully created.
I also tried with this environment definition without any luck:
Hardware a M1 Mac with macOS 14.1
The text was updated successfully, but these errors were encountered: