[mythtv-users] mythconverg database maintenance and backup

Jim Abernathy jfabernathy at outlook.com
Sun Jan 14 12:26:48 UTC 2018


I know I must be missing something simple.  Yesterday I worked to get the suggested optimize and backup scripts for mythconverg into the cron.daily directory.  I tested each of these scripts by running them as:

sudo /etc/cron.daily/mythtv-backup

sudo /etc/cron.daily/optimize_mythdb

They both worked and I had the backup files where they should be and data in the syslog and /var/log/mythtv/optimize_mythdb.log files to indicate they ran okay.

This morning anacron should have run at 6:25 my 2 daily scripts but it didn't and there is no indication in the syslog of it running. This is what I see at 6:25:

Jan 14 06:25:01 mythbuntu CRON[11179]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))

I again manually ran the scripts as before and they work.

Any idea on why they may not be running automatically?

My crontab is below.

Jim A


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

# m h dom mon dow user    command
17 *    * * *    root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6    * * 7    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6    1 * *    root    test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180114/26c6c030/attachment.html>


More information about the mythtv-users mailing list