What I want to do is run a backup task in Coldfusion (probably in a scheduled task) which will back up the structure and data in a MySql database.
The hosting server I use always blocks the use of cfexecute for security purposes so I can't use mysqldump.
e.g.
<cfexecute name="c:\program files\mysql\mysql server 4.1\bin\mysqldump"
arguments="--user=xxx --password=yyy dharma"
outputfile="#expandPath("./ao.sql")#" timeout="30"/>
(From Raymond Camden)
Are there any other options available to me ?
Backing up database files is a good idea, but if you back them up to the same drive, and the drive fails, you are screwed. I backup my databases daily to my local system. Here is the script I use in a .bat file
I use Windows task scheduler to run this every night. You could probably update it to remove older backups.
You will need to make sure you have gzip installed.
This will put copies of the DB on your local system - I then use a backup service to back up the backups to another offsite system.