I am trying to run a Cron job on my website. Its going to create a backup of my MySQL database. I contacted my webhosting support and they "fixed it" for me, but it still wasn't working. So I just overwrote it with what I thought was broken but they may have changed some other things without telling me. They changed my Cron Job to run this command:
I am using a windows system (and haven't dove into *nix at all) so Im guessing...
cd = current directory (?)
; - command delimeter
then script to run.
I have the cron job running every other minute (for testing purposes. Right now I am getting
I am using sitegrounds as my webhosting company if it helps.
I apprecaite all the help in advance.
Code:
cd ; ./public_html/support/automysqlbackup.sh ;
cd = current directory (?)
; - command delimeter
then script to run.
I have the cron job running every other minute (for testing purposes. Right now I am getting
and before I got this email:/bin/sh: ./public_html/support/automysqlbackup.sh: /bin/sh
: bad interpreter: No such file or directory
(note db_name replaced with personal info)mkdir: cannot create directory `/support': Permission denied
mkdir: cannot create directory `/support': Permission denied
mkdir: cannot create directory `/support': Permission denied
mkdir: cannot create directory `/support': Permission denied
touch: creating `/support/backups/localhost-925139000.log': No such file or directory
./public_html/support/automysqlbackup.sh: line 397: /support/backups/localhost-925139000.log: No such file or directory
touch: creating `/support/backups/ERRORS_localhost-926082000.log': No such file or directory
./public_html/support/automysqlbackup.sh: line 401: /support/backups/ERRORS_localhost-926082000.log: No such file or directory ======================================================================
AutoMySQLBackup VER 2.5
Backup of Database Server - ======================================================================
Backup Start Time Fri Jul 21 13:30:02 CDT 2006 ======================================================================
mkdir: cannot create directory `/support': Permission denied
mkdir: cannot create directory `/support': Permission denied Daily Backup of Database ( db_name ) Rotating last weeks Backup...
./public_html/support/automysqlbackup.sh: line 408: /support/backups/daily/db_name/db_name_2006-07-21_13h30m.Friday.sql: No such file or directory
gzip: /support/backups/daily/db_name/db_name_2006-07-21_13h30m.Friday.sql: No such file or directory
Backup Information for /support/backups/daily/db_name/db_name_2006-07-21_13h30m.Friday.sql
gzip: /support/backups/daily/db_name/db_name_2006-07-21_13h30m.Friday.sql.gz: No such file or directory
----------------------------------------------------------------------
Backup End Fri Jul 21 13:30:02 CDT 2006
======================================================================
Total disk space used for backup storage..
Size - Location
du: `/support/backups': No such file or directory
======================================================================
If you find AutoMySQLBackup valuable please make a donation at
======================================================================
I am using sitegrounds as my webhosting company if it helps.
I apprecaite all the help in advance.