Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

up vote 4 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

 
discard

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.