Basically i'm looking for a system whereby i can automatically create backups of a mysql database and store the backup as a .sql file(or similar).
There is a folder called cgi-bin in the root of my hosting account. I came across a tutorial entitled "How to backup your MySQL tables and data every night using a bash script and cron".
Within the tutorial a emailsql.cgi file is created, which is placed into the cgi-bin folder but also a Bash Shell Script is mentioned called mysqlbackup. What do i do with the mysqlbackup script? it doesn't say to give it a file extension or anything.
Can you save shell scripts as .cgi too?
mysqldump --opt [database name] > [backup file].sql
Then my backup script compresses the sql file with gzip.
I have it set up on a cron job to run nightly.
I suppose you could just do cron job for the above command to get what you're looking for.