Jump to content

Option to not remove lirbary items if library storage is offline


Recommended Posts

Posted
On 6/8/2024 at 11:04 AM, darkassassin07 said:

This behaviour hasn't changed really, but you can easily work with it to achieve what you want. It's all about how you structure your media folders:

 

Within the share you mount, you should have another folder that then contains your media folders, such as:

//sharename/media/movies/<movies>

//sharename/media/tvshows/<tvshows>

On the emby host, you want to mount the /media portion wherever (say /mnt/media for example), with the /movies and /tvshows folders within being created and removed by the mount. When unmounted, those two folders should disappear leaving an empty /mnt/media folder.

From here, if you add the folder /mnt/media/tvshows to emby, and then the share gets dismounted; emby will see that folder missing entirely instead of being empty; so it will not remove the media from your libraries.

 

This is exactly what I do, as my media is mounted via samba. Works great.

I can confirm that this isn't working the way you're describing it.  I'm set up almost exactly this way and Emby still clears out my metadata.  The docker container has the root of all of my media mounted like so:

--volume /mnt/nasdata/media:/mnt/media

 

 Then in Emby, I added a 'Movies' library that points to

/mnt/media/movies

 

And a 'TV' library that points to

/mnt/media/tv

 

My NAS lost power, my Emby server was brought online while the NAS was still offline, then the NAS was brought back online, and now Emby is taking all day to scan folders and download all the metadata.

  • Like 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...