[mythtv-users] Deleting recordings

Bill Meek keemllib at gmail.com
Wed Aug 3 22:56:49 UTC 2016


On 08/03/2016 04:58 PM, Scott Moncrieff wrote:
 > On 3 August 2016 at 21:52, Bill Meek <keemllib at gmail.com <mailto:keemllib at gmail.com>> wrote:
 >
 >     On 08/03/2016 03:27 PM, Scott Moncrieff wrote:
 >
 >         I have written a small script that will follow those symlinks and actually delete the files...
 >
 >
 >     Without getting into the 'other discussion' about
 >     deleting vs. letting the backend delete recordings
 >     when it needs space...
 >
 >     Does the "small script" delete the metadata or incorrectly
 >     remove only the link and file?
 >
 >     Note that:
 >
 >         https://www.mythtv.org/wiki/DVR_Service#DeleteRecording
 >
 >     would do the right thing. There are probably bindings
 >     that would do that too.

> No, it would only delete the video file, I could probably have it clean up the metadata as well though. The main problem is that that files
> don't seem to getting removed from the hard drive after deleting them via a frontend.
>
> I don't really think that manually removing the files is the solution, it will most likely leave a lot of references in the database that I will
> never be able to clean up and add to my problems. I had assumed that unchecking 'Delete Files Slowly' meant that they were deleted as soon I
> deleted them from the recordings, should I maybe just leave it a while longer and see if they slowly get removed?

If you have your script use the Services API (or bindings)
then the metadata will get removed too.

But the 'other discussion' is just let MythTV delete the files when
it needs space. Some users just want to have the free space on the
disk. It's a discussion that can't be won.

I'm guessing that: "if I have a 3TB drive for recordings, why does it say 4TB
available after auto expire" is caused by summing up the file sizes in the
metadata that didn't get removed. If this is the case your backend log will
be full of lines telling you about missing files. Good old df would also
say how much space you've got

-- 
Bill


More information about the mythtv-users mailing list