[mythtv-users] find orphans.py question

Michael T. Dean mtdean at thirdcontact.com
Thu Apr 14 17:02:46 UTC 2011


On 04/14/2011 12:12 PM, richard Woelk wrote:
> On 4/13/2011 12:46 PM, Michael T. Dean wrote:
>> On 04/13/2011 02:41 PM, Warpme wrote:
>>> Sorry for slight off-topic.
>>> I'm using script below in regular way in my 0.24-fixes production system.
>>> I consider it useful as it allows me to do regular maintenance
>>> (especially cleaning up DB&   storage groups)
>> Please let us know what regular problems you're finding so that we can
>> fix our broken code that leaves orphaned files.
>>
>> Workarounds don't work.  We need to fix the problems, and can't do that
>> if no one reports them.
>>
>> I have never had an orphaned file on my MythTV system (in use since May
>> 2004), and have only had orphaned metadata when I had hard drive crashes
>> and lost the recordings on the file system.  If you regularly need to
>> maintain your DB and storage groups, something is wrong.
>       I agree that in a normal working system these orphans don't happen. But we need some
> "repair" programs for when things do go wrong.
> Hard drives die and corruption happens. I have recently lost my OS drive and my database
> backup was 2 weeks old. A lot of recordings have been done in that time, and a lot of
> shows were watched and deleted
> There are now orphaned db entries and orphaned recording files. I now have to work at
> fixing this situation.

I'm not disagreeing with the idea of having a way to clean up the 
recordings--that's why we have one officially supported script to do 
exactly that ( http://www.mythtv.org/wiki/Find_orphans.py ).  I was 
simply concerned about the use of the words, "regular maintenance" in 
describing how the posted script was used.  If it is "regular" 
maintenance, then something is /very/ wrong.

Mike


More information about the mythtv-users mailing list