[mythtv-users] Q: A truckload of ".old" files in the dir where MythTV records??

Kingsley Turner krt at krt.com.au
Tue Jul 5 21:49:22 UTC 2011


On 05/07/11 22:33, Andrew Stadt wrote:
> On 05/07/2011 2:11 AM, Zuriel wrote:
>> From: Kingsley Turner<krt at krt.com.au>
>> To: Discussion about MythTV<mythtv-users at mythtv.org>
>> Sent: Tuesday, July 5, 2011 3:40 PM
>> Subject: [mythtv-users] Q: A truckload of ".old" files in the dir
>> where MythTV records??
>>> Hi,
>>>
>>> Chasing up some "missing" diskspace, I have found a truckload of ".old"
>>> files in the directory where MythTV stores the recorded TV programmes.
>> <snip>
>>
>>> There are around 265 files in total.
>>>
>>> Looking at one, it seems to be from a file I have transcoded (after
>> marking
>>> the ads away).
>>> Does anyone know where these come from?
>>> Can I safely remove them ?
>>>
>>>
>>> cheers,
>>> -kt
>> Do you have MythTV set to delete old files after transcoding? I can't
>> remember where this setting is off the top of my head.
>>
>> Deleting .old files shouldn't cause any problems. Except for the
>> obvious case where you break a recording somehow and want to restore
>> it from backup and then you don't have the backup anymore.
>>
> I'm not sure what the OP's setup is, but I used to have a user job to
> transcode (and remove commercials) from certain scheduled recordings,
> and it would leave these *.old files around.  I had a cron job which
> would remove any *.old file which was more then 48 hours old.

Hey, good idea!

For the sake of completeness, here's a crontab entry:

### Just before midnight, remove any *.old files, iff older than 48 hours
59 23 * * * /usr/bin/find /home/kingsley/MythTV -name \*.old -cmin +2880 
-type f -exec rm -f {} \;

cheers,
-kt


More information about the mythtv-users mailing list