Jobs with anacron won't run

Posted by mareser on Super User See other posts from Super User or by mareser
Published on 2011-11-25T15:18:55Z Indexed on 2011/11/28 1:55 UTC
Read the original article Hit count: 316

Filed under:
|
|
|
|

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.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# 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/backup_TB.sh
1   5   key_db_bak  /bin/sh /home/vasco2/Dropbox/Scripts/bak_key_db.sh

The output of ls ~/Dropbox/Scripts/ is backup_TB.sh bak_key_db.sh

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

I would be very happy if somebody could point me in the right direction on why those scripts won't get executed.

P.S.: There is no anacron tag on superuser.com. Maybe somebody wants to change that.

© Super User or respective owner

Related posts about linux

Related posts about bash