A few weeks ago I setup Plex DVR with my HDHR Prime, and setup recording for a couple shows.
After having seen the recording successfully being made, I decided to enable the advanced recording option to automatically delete the recorded file a day after being watched. The idea is that I also download these shows and prefer to keep the smaller and edited version from the downloaded file.
My recordings were setup in a separate folder than my downloaded shows, and both folders are included in the library.
I run Plex on a Synology NAS, and the plex user is set with rights to add/remove files to the record folder, but only with read access to the download folder.
I was shocked to discover a day later that not only Plex deleted both recorded and downloaded files for the most recent watched episode, but also deleted all previously watched downloaded files of those shows!!! Hundred of files gone, nowhere to be found.
I then disabled the auto-delete feature of recordings, and things seemed to be “fine” for some time.
It seemed like Plex wasn’t recording new episodes anymore, but the downloaded versions were still being added and not being deleted.
Then one day all the sudden, possibly after a combination of an update and/or reboot, my newly downloaded episodes for these shows were gone too, even if there hadn’t been any recordings!
I then went on to remove the recording schedule completely since it wasn’t working, and redownloaded recent episodes.
To my shock, the next day everything was gone again!
What else can I do to prevent Plex from deleting my episodes?
There is no scheduled recording, so no setting to automatically remove anything anymore. I just disabled DVR with hope that helps. Could there be a hidden task somewhere I can access from the file system?
File deletion by owner is disabled (and was always disabled) in the settings.
I also realized that Plex was able to delete the files because the Synology install script adds the plex user to the admin group, even on updates where the plex user already exists.
Plex runs perfectly fine without admin group membership on Synology NAS, why does it adds itself like that!?
Finally, no matter what, Plex should delete the files in a way compatible with the OS it runs on, i.e. in this case respect the fact that the recycle bin option is enabled on that folder.