Architekt 6 Posted October 26, 2023 Share Posted October 26, 2023 I'm running Emby on OMV (just a Debian distro for media serving), not in a docker container. Anyway, I noticed that my /var/lib/emby/transcoding-temp directory had grown to about 85GB in size over a week (had a lot of people streaming). A server reboot cleaned it up, but I was wondering if it ever automatically cleans these temp files up itself? I'm not sure if there's an option somewhere or I misconfigured something, or it just doesn't auto cleanup that folder. Thanks! BTW I'd just like to express my gratitude towards the devs: I had been on Plex for so long, and switching to Emby has been nothing short of a massive upgrade, not just for me, but everyone that I let streams off it tells me it's a much better experience for them. So I bought a lifetime sub. Easily worth it. 1 Link to comment Share on other sites More sharing options...
GrimReaper 3330 Posted October 27, 2023 Share Posted October 27, 2023 6 hours ago, Architekt said: A server reboot cleaned it up, but I was wondering if it ever automatically cleans these temp files up itself? Yeah, it should, though on some configurations it happens that it doesn't always work. 6 hours ago, Architekt said: I'm not sure if there's an option somewhere or I misconfigured something, or it just doesn't auto cleanup that folder There's no particular option that you misconfigured, it just doesn't auto-cleanup. Had similar occurence long time sgo under Windows installation as well, ended up creating scheduled task for transcode folder daily cleanup. 1 Link to comment Share on other sites More sharing options...
Solution jaycedk 398 Posted October 27, 2023 Solution Share Posted October 27, 2023 (edited) I use this script, to clean up in Unraid, and run it daily via cron job. It will delete files and folders older than 1 day, under parent dir. #!/bin/bash find /Path to/transcoding-temp/* -mtime +1 -delete Edited October 27, 2023 by jaycedk 1 1 Link to comment Share on other sites More sharing options...
Architekt 6 Posted October 27, 2023 Author Share Posted October 27, 2023 3 hours ago, jaycedk said: I use this script, to clean up in Unraid, and run it daily via cron job. It will delete files and folders older than 1 day, under parent dir. #!/bin/bash find /Path to/transcoding-temp/* -mtime +1 -delete Thanks a ton for that bash script. I'll use that. I wasn't sure if a blanket nuke of the contents of the subfolders was OK to do or not (the reboot left a couple super tiny folders in there) but it apparently is. Link to comment Share on other sites More sharing options...
jaycedk 398 Posted October 27, 2023 Share Posted October 27, 2023 (edited) Yes it should be ok. Thats why I have set it to 1 day old deletion. The only problem I can think of is If someone watching Le-man 24h race, and want to rewind to start Edited October 27, 2023 by jaycedk 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now