Thread: anacron not running weekly or monthly backup script
hi,
have been trying set pc automatic backups using script developed , anacron. script runs when run manually in bash, won't run through anacron. if there me understand doing wrong appreciated. followed advice on cronhowto etc etc , @ loss why not happening.
here anacron tab (new bits in blue):
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
7 30 desktop_weekly_backup /home/malapradej/run_backup_int.sh
@monthly 90 desktop_monthly_backup /home/malapradej/run_backup_ext.sh
, here syslog:
aug 16 09:00:06 malaprade-desktop anacron[856]: job `cron.daily' terminated
aug 16 09:00:06 malaprade-desktop anacron[856]: job `desktop_weekly_backup' started
aug 16 09:00:06 malaprade-desktop anacron[856]: job `desktop_weekly_backup' terminated (exit status: 1) (mailing output)
aug 16 09:00:06 malaprade-desktop anacron[856]: tried mail output of job `desktop_weekly_backup', mailer process (/usr/sbin/sendmail) exited ststus 255
aug 16 09:00:06 malaprade-desktop anacron[856]: normal exit (2 jobs run)
try renaming script without ".sh" extension.
http://www.softprayog.in/tutorials/anacron
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] anacron not running weekly or monthly backup script
Ubuntu
Comments
Post a Comment