Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to configure automysqlbackup to run via a cronjob to backup my dbs nightly.

When I execute sudo automysqlbackup from a terminal, the process executes as expected and creates the backup archives.

I then executed sudo crontab -e and added

0 2 * * * automysqlbackup

to the cron jobs.

This job does not run, and I can't find any error messages that might help. Any ideas why this job isn't executing?

share|improve this question
up vote 6 down vote accepted

The most common problem with cron is that it runs with a minimal shell with minimal environmental variable.

Use the full path to automysqlbackup

If you do not know the full path, run which automysqlbackup

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.