-2

I want to make an automatic backup of my database, so i wrote like this

00 10   * * *   root     mysqldump -u root -ppasswordD billing "/home/backup/database_`date '+%m-%d-%Y'`.sql"

But it is not working, any ideas please?

Thanks and regards,

alkhader
  • 960
  • 6
  • 16
  • 33

1 Answers1

1
00 10 * * * mysqldump -u root -ppasswordD billing "/home/backup/database_`date '+%m-%d-%Y'`.sql"

If it fails or produces any output then you will get a mail for root, read it with the command "mail" or read /var/log/cron.log ;)

K1773R
  • 922
  • 4
  • 10