The drive where my media files are located died. While I wait for the painfully slow block-level recovery process to complete, I need to generate a list of all files and their sizes so I can rename them properly.
I made a copy of the entire Plex Media Server folder and registry from the server since that PC is quite old, and I plan to re-install it on a new PC.
I found a sample query in this post: I need to export a list of files to my desktop - #18 by hthighway. I’ve run some queries on the backup copy of the db. However, it only lists the files from one of my libraries, Movies. I also need the info from three other libraries: Home Movies, Lectures, and TV Shows.
Any suggestions or a better approach are welcomed.
Here’s a small sample of what I’ve tried.
SELECT file, size FROM media_parts WHERE file is not null;
Filename| Size
E:\Movies\Title1.mkv| 1,060,159,845
E:\Movies\Another Title.mkv| 962,753,802
E:\Movies\Title3.mkv| 1,529,794,025
E:\Movies\A 4th title.mkv| 1,167,791,464
“SELECT S.id, name, root_path, agent, scanner FROM section_locations L INNER JOIN library_sections S ON L.library_section_id=S.id ORDER BY name;”
id,name,root_path,agent,scanner
3,“Home Movies”,E:\HomeMovies,com.plexapp.agents.none,“Plex Video Files Scanner”
5,Lectures,E:\Lectures,tv.plex.agents.series,“Plex TV Series”
1,Movies,E:\Movies,tv.plex.agents.movie,“Plex Movie”
1,Movies,E:\Test,tv.plex.agents.movie,“Plex Movie”
2,“TV Shows”,E:\Shows,tv.plex.agents.series,“Plex TV Series”