plex-auto-trash icon indicating copy to clipboard operation
plex-auto-trash copied to clipboard

Protection against array / drive disconnection

Open thatbritguy opened this issue 3 years ago • 2 comments

I've been looking for something like this for years as remembering to manually empty trash is a pain (usually when something won't play because I forgot to do it) so this is great thanks and seems to be ticking along right now (I used the CRON variable to increase the frequency). I just wondered if there's any protection built in (or if not whether it is possible to add it) for a situation where the RAID array (or drive) hosting the media goes down unexpectedly for any reason. Would plex-auto-trash keep running and essentially nuke the library? I think I remember seeing that even with auto-empty on in the Plex server settings it won't do it if the library path isn't available. Does this mean I'm safe even with plex-auto-trash? If not is it possible to add some sort of check before running the empty that will prevent it if the library path is unavailable? Sorry if I haven't explained it well or used the correct terminology. Thanks.

thatbritguy avatar Apr 09 '22 05:04 thatbritguy

This is not currently implemented but it could be optionally added.

JakeWharton avatar Apr 11 '22 19:04 JakeWharton

Thanks for the reply, that's great to hear that this is a possibility. Would love to have that protection as an option. > This is not currently implemented but it could be optionally added.

thatbritguy avatar Apr 12 '22 03:04 thatbritguy