JayBizzle / mysqldumper

Create MySQL dumps and upload to Dropbox, remote FTP server or Amazon S3.
MIT License
24 stars 2 forks source link

RuntimeException - Too many arguments #13

Open shefik opened 7 years ago

shefik commented 7 years ago

When I run the code, I get the following error from the cron:

Symfony\Component\Console\Exception\RuntimeException] Too many arguments.

JayBizzle commented 7 years ago

What is the command you are trying to run?

shefik commented 7 years ago

/usr/bin/php mysqldumper.phar --keep-local >/dev/null 2>&1

shefik commented 7 years ago

I am using the master version. Also, tried version 1.0.6. Tried dropbox and ftp settings.

JayBizzle commented 7 years ago

What happens if you try without the /dev/null ?

shefik commented 7 years ago

Same issue with just /usr/bin/php mysqldumper.phar.

shefik commented 7 years ago

When I run just /usr/bin/php mysqldumper.phar, I now get this error:


 No mysqldumper.json found  

mysqldumper [--dir DIR] [--keep-local] [--skip-remote] [--ignore-table IGNORE-TABLE] [--self-update]```

Even though `mysqldumper.json` is in the same directory as `mysqldumper.phar`.
JayBizzle commented 7 years ago

Vey weird. We are running this no problem on some production servers.

Can't look into it at the moment, as I'm away for the festive period and don't have access to my dev machine.

Will take a look when I'm home in a few days.

Let me know if you figure anything out in the mean time

Thanks

JayBizzle commented 7 years ago

@shefik Did you get anywhere with this?

shefik commented 7 years ago

Not yet.