I use a shell script that opens an ssh connection and creates sqldump.
But, when I use mysqldump in a shell script, it gives me an error: "There is no such file or directory"
This is the line I'm using:
ssh user@host mysqldump -uusername -hlocalhost -ppassword --all-databases > /home/user/sqlfile.sql
mysqldump works when I use it in an open ssh connection or on a server at the command line.
So my question is why can I get an error and why can't I run the mysqldump command in a shell script?
9edge source share