I've looked around (will be using the code in a cron job eventually) and found this
mysqldump [OPTIONS] database [tables]
Well, I want all the tables.
mysqldump [--password=password --all] dbname > dbbackup.sql
It gives an error,
mysqldump: unrecognised option '--all]'
I can create the file on my server by just doing
mysqldump --password=password > dbbackup.sql
but it just gives a nice little file on mysqldump, maybe useful (I was reading it from a webpage before) but not what I'm looking for!
Thanks for any help