View Single Post
Old 01-28-2006, 06:44 PM   #7 (permalink)
Bullit
 
Junior Techie

Join Date: Nov 2003

Posts: 58

Bullit

Default

My cron job is running well.
I'll post the code here soon - maybe it will help others.

Just one snag left to iron out on it...

When this line runs:
/usr/bin/mysqldump -q -hdbhost.com -uusername -ppassword dbname /usr/www/users/ourname/backup/database_name_`date "+%Y%m%d"`.sql ;

The result should be:
database_name_20060128.sql

but I get:

database_name_.sql

Any idea why?

I run the cron via crontab manager using the command:
sh cronjobfilename.sh

If anyone knows why my date function is not executing please give me a shout.
Thanks
Bullit is offline