I am using mysqldump command to take backup of my database.
mysqldump --add-drop-table -u user -ppassword databasename > backup/mybackup_$(date +%d%m%Y_%H%M).sql
and it works fine...But i want to automate this so that it can take a backup once in every two days or something..for this i am using crontab..
15 2 * * * mysqldump --add-drop-table -u user -ppassword databasename > backup/mybackup_$(date +%d%m%Y_%H%M).sql
but this is giving me an error in putty saying command not found..any idea why?? Please help me..