Coastie
06-02-2002, 04:38 PM
I am trying to create a cron job on a RAQ4
It will dump, compress, and move to folder a backup of a mySQL database.
I can run this command via command line, and it works great
mysqldump -u root -pPASSWORD -q DATABASE| gzip > /xxx/xxx/xxx/web/backup/backup.$(date +%a).gz
When I create a text file called SQL_backup and place it in /etc/cron.hourly
and try to run it, I get the following error
[root cron.hourly]# crontab SQL_backup
"SQL_backup":2: bad minute
errors in crontab file, can't install.
[root cron.hourly]#
Can someone please provide me a script that will run?
It will dump, compress, and move to folder a backup of a mySQL database.
I can run this command via command line, and it works great
mysqldump -u root -pPASSWORD -q DATABASE| gzip > /xxx/xxx/xxx/web/backup/backup.$(date +%a).gz
When I create a text file called SQL_backup and place it in /etc/cron.hourly
and try to run it, I get the following error
[root cron.hourly]# crontab SQL_backup
"SQL_backup":2: bad minute
errors in crontab file, can't install.
[root cron.hourly]#
Can someone please provide me a script that will run?
