[mythtv-commits] Ticket #2363: new contrib script: validate recorded db table versus files stored in recording directories

MythTV mythtv at cvs.mythtv.org
Mon Sep 11 02:24:08 UTC 2006


#2363: new contrib script: validate recorded db table versus files stored in
recording directories
----------------------------------+-----------------------------------------
 Reporter:  ltd at interlink.com.au  |       Owner:  ijr 
     Type:  defect                |      Status:  new 
 Priority:  minor                 |   Milestone:  0.21
Component:  mythtv                |     Version:      
 Severity:  medium                |  
----------------------------------+-----------------------------------------
 The attached script is intended to be part of the contrib/ directory
 scripts.

 The intent of this script is to be able to find orphaned rows in the
 'recorded' table (entries which don't have matching files).  Likewise it
 is useful to find orphaned files (potentially taking up gigabytes of
 otherwise usable space) which have no matching row in the 'recorded' db
 table.

 By default, running the script will simply return a list of problems it
 finds.  Running with --dodbdelete will remove db recorded rows for which
 there is no matching media file.  running with --dodelete will delete
 media files for which there is no matching db record.

 I found this useful to fix up some orphaned db entries (causes mythweb to
 run verrry slow) as well as reclaim some disk space from some orphaned
 media files.  (not sure what caused these yet, am going to see if they
 keep recurring)

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/2363>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list