if copy and past is working for you, I suspect that the problem lies in your typing. I was hainving a bit of a problem with this when I set up something similiar. As that code looks familiar, I’m also gonna guess you took it from the thread that where I posted that stuff. Anyways…
when you thpe the ` thingy, are you using the key that’s just to the left of 1? it’s not a single quote, but this sideways quote thing. That can make a big difference. The other thing to keep in mind is that every thing is CaseSenSitive, so make sure there’s no capitlas in your line that shouldn’t be there.
Here’s the code I’m using, you can compare if you want:
echo "Here it goes!"
mysqldump --opt -uUser -pPassword -h mysql.domain.com database_name > backups/mysql/database_name.$suffix.sql
echo "I dumped exlibrisbitsy_mt3 succesfully at
That’s stored in a basic text file name backup.sh. For testing purposes I run it by typing “bash backup.sh”.
You’ll also want to make sure that the entire mysqldump command is on one line. If it wraps onto a seconed line it won’t work. Search the forum for the parameter to pass to your text editor to turn off text wrapping (but I think it pico -w or whatever text editor you’re using.)
Does this help?