[mythtv-users] mythconverg database maintenance and backup

Jim Abernathy jfabernathy at outlook.com
Mon Jan 15 14:01:53 UTC 2018



> On Jan 15, 2018, at 8:07 AM, Stephen Worthington <stephen_agent at jsw.gen.nz> wrote:
> 
> On Mon, 15 Jan 2018 12:31:01 +0000, you wrote:
> 
> 
>> So I waited until after 6:25 this morning and my scripts didn't run. Only one entry in syslog about cron.daily running.
>> 
>> About 6:55 I decided to reboot the server.  While readingemail I got one at 7:16 that my database had been backed up and I checked syslog again and at 7:01 my cron.daily jobs ran correctly and the backup was in the right place.
>> 
>> I have no idea why it ran at 7:01 and not 6:25 as crontab has setup.
>> 
>> Strange,
>> 
>> Jim A
> 
> Anacron will run the jobs in the /etc/cron.daily directory in order,
> one after the other.  So if there are previous jobs that take a while,
> the database backup will be delayed while they are run.
> 
> Anacron runs the daily jobs once a day, either at the time specified,
> or shortly after boot.  The latter is for systems that are not always
> on, such as laptops.  You can control Anacron by editing its files in
> /var/spool/anacron.  The cron.* files contain the last date anacron
> ran those directories.  You can adjust the datestamps to prevent
> anacron from running after your reboot.  You can also do a "ps -e |
> grep anacron" to find anacron's pid and kill it after a reboot.  Then
> it will run again at the normal times instead of soon after the
> reboot.

Thanks for clearing that up.  I guess the other scripts in daily don’t put anything in the syslog to know they are running.  I’ll just leave things along and see what happens over the next few days.

Jim A

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org



More information about the mythtv-users mailing list