I have a bash script that backups database. What I want to do is save the file with its name and the current date. Here is my script.
#!bash/sh
#
MYDATETIME=;date +%Y-%m-%d
mysqldump -uroot -pdthscyth jobs > jobs_$MYDATETIME.sql
The problem is when saving the file the value of the variable is not saved. Instead of jobs_2010-12-29.sql the filename is jobs_.sql. Please help. Thanks and Happy New Year!.