[mythtv-users] Why is my cron job not backing up my database?

Michael T. Dean mtdean at thirdcontact.com
Thu May 10 03:48:36 UTC 2012


On 05/09/2012 11:43 PM, Bill Meek wrote:
> On 05/09/2012 10:33 PM, Gabe Rubin wrote:
> ...
>> [mythtv at localhost backup]$ more /home/mythtv/.mythtv/backuprc
>> DBBackupDirectory=/home/mythtv/.mythtv/backup
>>
>> And the command works from the command line.  It just seems that none
>> of my cronjobs are functioning.
>
> But isn't your cron job running as root? If so, there
> should be a similar entry in ~root/.mythtv.
>
> At least that would explain why cron fails and command line works.
>

And/or you need to specify a value for HOME to point to /home/mythtv

(without a valid HOME, nearly all things MythTV will fail--including 
optimize_mythdb.pl and mythconverg_backup.pl)

Mike


More information about the mythtv-users mailing list