Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 would like to run two bash scripts daily using anacron in order to backup some data. Unfortunately I can't figure out why said scripts are not executed. For test purposes I let cron execute the scripts and it worked fine.

cat /etc/anacrontab gives

# /etc/anacrontab: configuration file for anacron

# See anacron(8) and anacrontab(5) for details.


# These replace cron's entries
1   5   cron.daily   nice run-parts --report /etc/cron.daily
7   10  cron.weekly  nice run-parts --report /etc/cron.weekly
@monthly    15  cron.monthly nice run-parts --report /etc/cron.monthly

1   5   TB_bak      /bin/sh /home/vasco2/Dropbox/Scripts/
1   5   key_db_bak  /bin/sh /home/vasco2/Dropbox/Scripts/

The output of ls ~/Dropbox/Scripts/ is

I use Linux Mint Katya. uname -a gives Linux vasco2 2.6.38-8-generic-pae #42-Ubuntu SMP Mon Apr 11 05:17:09 UTC 2011 i686 i686 i386 GNU/Linux

Why can't these scripts be executed?

share|improve this question
Are the cron.daily/weekly/montly jobs executing? – Evan Nov 29 '11 at 0:56
Yes, I tested this by putting a script into cron.hourly that writes to a text file. – Matthias Braun Nov 30 '11 at 1:57
For debugging run sudo anacron -fnd. Helped me alot to fix my anacrontab. It will force execution, ignore timestamps, ignore delays, dont go to background – Alex Jan 12 at 2:57

Try to change the script name to a very simple name without dot and special chars, both the name itself and in the crontab.

share|improve this answer
I replaced the dot of the script name with an underscore. I modified /etc/anacrontab accordingly. Still nothing. – Matthias Braun Nov 28 '11 at 15:22
No underscore either : just rename the filename by "foobar", make sure it's executable and try again. And tatata... Magic ? – hornetbzz Nov 29 '11 at 9:34
I renamed the scripts to backupTB and bakkeydb, made sure they are executable and changed /etc/anacrontab. They are not executed. – Matthias Braun Dec 3 '11 at 15:07
Make also sure it's chmoded +x and the file's owner is correct Vs. your user's crontab list. – hornetbzz Dec 3 '11 at 19:44
Thanks, I made sure they are executable. What are correct Vs? – Matthias Braun Dec 8 '11 at 3:31

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.