kelinger / OmniStream

Deployment and management tools for an entire streaming platform that can reside on a server (local, remote, hosted, VPS) with media files stored on cloud services like Google Drive or Dropbox.
MIT License
30 stars 8 forks source link

Server HDD full #41

Closed falcomm6 closed 1 year ago

falcomm6 commented 1 year ago

Hi guys,

I had an issue where my HDD got full. Everything stopped working, so I restored from a backup.

Now everything is back online, except my plex database is gone. The Plex settings are still there, but the directories/database was missing. I migrated from Gooby, and did the backup through omni - which may have been the cause?

Anyway. Im okay with the database, Ill just let it run and ratelimit me for a few weeks until done lol. Now for my question - is there any way to make a script to delete completed downloads so I dont run out of disk again?

Thanking you

kelinger commented 1 year ago

Completed downloads (those that download completely and have successfully been uploaded to the cloud) are removed upon copying to the cloud. What still needs to be removed are incomplete or errored-out downloads. If you use SABnzbd, for example, a download that could not be repaired remains locally stored since it cannot be decompressed, but there may (in theory; I have yet to see it happen) be a chance that the missing parts are available in the near future.

If you use Radarr/Sonarr/arr they also show unprocessed downloads (these may be complete or incomplete but, for one reason or another, they couldn't be matched successfully to the movie/show/album). These also remain in your downloads until you manually process them from the corresponding arr. For example, a TV episode may be misnamed so Sonarr can't tell that it is "The Simpsons, S03E15." Once you fix that mapping in Sonarr, the download will process, pop out of Sonarr's queue, and be queued for upload to the cloud and removal from the local storage.

falcomm6 commented 1 year ago

Thank you. Will follow your steps.