Tool to move watched files from one drive to another
from jobbies@lemmy.zip to selfhosted@lemmy.world on 08 Aug 17:51
https://lemmy.zip/post/45833922

I use Plex for watching stuff. My *arr stack is set up to send new movies/tv eps to libraries on an SSD.

Every couple of days I manually move anything watched to a library on an HDD for long term storage. I have Plex set up so that the TV and Movies libraries combine the two locations.

I think you can get a list of watched stuff from the Plex API. I could probably write a script to automate the workflow but if there’s a tool out there that already does this there’s no point in reinventing the wheel.

Anyone seen or heard of anything that would do the job?

#selfhosted

threaded - newest

scottmeme@sh.itjust.works on 08 Aug 18:18 next collapse

Why not just have everything on the hard drive instead? If you did want to write a tool you could use the Plex webhooks, but I haven’t heard of anyone wanting to do this before.

jobbies@lemmy.zip on 08 Aug 18:23 collapse

Speed - the SSD is nice and quick but anything on the HDD buffers. Its not a bad suggestion though, I might try it out.

frongt@lemmy.zip on 08 Aug 19:24 next collapse

Any drive should read faster than media playback. I’d check the actual read speed and playback logs to make sure you’re not having other issues.

artyom@piefed.social on 08 Aug 19:25 next collapse

HDDs are plenty fast enough to play movies. It sounds like you have another problem.

fatalicus@lemmy.world on 09 Aug 06:32 collapse

Unless you are running on Pata drives from the 90s or have movies in fucking 32k, there is no reason for movies on the hard drives to buffer.

Probably something going on with your server causing it. The HDDs connected to a bad card, or something keeping the drives very busy

ExcessShiv@lemmy.dbzer0.com on 08 Aug 18:23 next collapse

What’s the benefit here? Regular HDDs have more than enough speed for watching movies/series, why not store directly in the “library”?

jobbies@lemmy.zip on 08 Aug 18:46 collapse

The speed difference is noticeable but there are a few quirks in my networking that I have to live with.

dgdft@lemmy.world on 08 Aug 18:36 next collapse

Just a thought, but you might be able to do this easier by looking at atime and mtime rather than fiddling with the API.

jobbies@lemmy.zip on 08 Aug 23:15 collapse

Good idea. Definately easier but getting a list of watched files from the API might be more efficient.

[deleted] on 08 Aug 18:44 next collapse

.

Good4Nuthin@lemmy.world on 08 Aug 18:49 collapse

There are scripts to do this type thing on Unraid, possibly adaptable to other platforms/scenarios. Search for “unraid userscript move watched to array”.

There are even ones that will move an entire season or show over to your “fast” drive whenever you start watching a show.

I don’t have anything so complex in use currently; i just have it set to keep new stuff on the fast drives for 60 days, then shuffle it off to hdds.

As far as why ssd over hdd? Prob more of a power issue than a speed issue. Depending on how your storage is setup, it can save a bit if juice not having to spin up an array of hdds.

jobbies@lemmy.zip on 08 Aug 21:58 collapse

Thanks I’ll take a look! If nothing else they might give me some inspiration