Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Prevent auto deletion of a file

Featured Replies

Need some help.

 

So I have plex installed and plex app on my PCH. Unfortunately, to force SAMBA the developers have you put a config.xml file and create a CloudMedia folder in one of the directories of Plex Media Server.

 

Well what happens is that plex seems to automatically delete that folder and file about every day. I think it has something to do with updating that component... Anyway, people on windows OS were able to prevent deletion of the file and folder on the OS and that solved their issues. However, I don't know how to do that on unraid. Can someone help me out?

 

Basically I don't want PMS that is running on unraid to be able to delete that folder and file.

Is there a way to do that?

 

This isn't a move issue and everything is installed on the cache drive. This is only an issue because the popcorn hour app works this way.

 

Appreciate your help in advance.

Wait what?  Damn it I replied to this. [sigh]

 

Ok I'm not writing it all again.  But the crux is, I'm guessing you suffer from the mover script moving your files off the cache every night.  Change the share you created to a "cache only" share and the mover will stop moving it.

  • Author

Guys, this is NOT a mover script issue. Everything is set up correctly to cache only. This is sort of a work-around patch released by the PCH people to host that file on the Plex Server, but plex updates and deletes that folder...

 

It is also present on people with Windows OS (the folder gets deleted). They don't have mover script issues... The workaround they made was to make the file read-only so now it can't be modified...

 

I would like to do the same in unraid...

  • Author

BTW, I think this should be in general support. This isn't an app-specific question. I would just like to know the general linux commands that I need to type to prevent an app from auto-deleting a file..

You could try to make the file immutable using the Linux chattr +i command, it should prevent even root from erasing the file.

  • Author

Someone had suggested that on another forum, but that didn't work, gave me some kind of error.

 

Do I put the file name after the +i or the folder name?

Haven't tried it on UnRaid, but it should be chattr +i filename  you need to be in  the directory of the file you want to change, or use the full path

 

http://en.wikipedia.org/wiki/Chattr

 

chattr [-RVf] [-+=AacDdijsSu] [-v version] files...

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.