[wellylug] Mysqldump problem
Nigel Roberts
nigel at nobiscuit.com
Mon Sep 12 12:52:59 NZST 2005
Hi Michael,
On Mon, 12 Sep 2005 at 11:51:26 +1200, Michael Dittmer wrote:
> Hi Mark
>
> Fixed the shebang issue, but my script still complains about the -b
> option which as you can see isn't in the script.
>
> I'm calling the script using ./MySQL_Dump.sh
>
> I'm going to use cron to call the script once I have the bugs worked
> out.
>
The script should be:
#!/bin/bash
rm /root/MySQL_BackUp/backup.sql
mysqldump -p --password=********* -A > /root/MySQL_BackUp/backup.sql
I think the shell is interpreting -alldatabases as a series of options.
Regards,
Nigel
More information about the wellylug
mailing list