-
Notifications
You must be signed in to change notification settings - Fork 198
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
v.1.0.0 not working with mysql-backup [command] syntax error #372
Comments
You have to add
to your docker-compose.yml file. It is not in the documentation yet, but shown in the current example. I just spent half an hour debugging the same error... |
Looks like you were using just the older one, not the most recent tag, @lansaloni . This was bumped to v1.0.0 and the old one removed. So, yes, you need to add the command. Thanks @FlorianEndel We should add it to the docs. |
Come to think of it, where would it go in the docs? The README does not reference a compose file, but it does reference both the local binary and running with |
When I encountered the problem, I looked in the linked documentation from the main |
Got it @FlorianEndel updated in #373 |
On a second thought, perhaps defaulting to In my experience, it is rather uncommon to define the command to run to execute the default behavior of a docker container. |
First things first, #373 should go in to align docs with current functionality. In terms of your suggestion, I had thought about it as well. The challenge is that it might work well for docker, but that is just executing the binary. When you run the binary standalone, requiring a command is common. $ mysql-backup # this should ask what command to run, as it does now
$ mysql-backup dump # will dump
$ mysql-backup restore # will restore
... But $ docker run mysql-backup # you want this to be equal to `mysql-backup dump` I am not 100% sure that makes sense, but maybe. We already have [an entrypoint script] (https://github.com/databacker/mysql-backup/blob/master/entrypoint), so we might be able to check if the args passed to the entrypoint are empty, then make it restore. Might that mess up someone doing |
@deitch The problem is that backwards compatibility with old versions has been lost. Those who, like me, have a working system and use the latest version find themselves with a system that no longer works when the stack is restarted. This should be written in the README.md file. |
That isn't the only thing that changed. Went through the process of 2+ years slowly releasing binary versions, release candidates, etc. At a certain point, backwards compatibility breaks for future features. Especially when using semver. Nothing prevents anyone from sticking with an old version, all of the tags are available in docker hub. I don't even mind adding a tag that permanently is the older version, maybe |
Yes, you should probably update the docs at https://hub.docker.com/r/databack/mysql-backup. |
Done. I thought about using the GitHub Action to automatically update the README, but then you get weird links issues (relative paths that resolve to docker hub rather than GitHub).
Nope, please see the docs. |
Hi!
I have been using mysql-backup for several years on my docker swarm and this is an example of docker composer:
the container starts but immediately terminates with a syntax error in the mysql-backup command:
looking at the code I see that the backup command is launched with the environment variable
$@
(${NICE_CMD} /mysql-backup $@
) but I don't understand who passes the list of parameters because in the dockerfile the entrypoint is without parameters:ENTRYPOINT ["/entrypoint"]
if I use the
databack/mysql-backup:v0.12.0
version instead everything works regularly.Can you help me understand what I'm doing wrong?
The text was updated successfully, but these errors were encountered: