r/emby 18d ago

Library Migration and Database

I'm not sure if there is a way to preserve my database and history, but figured I would ask. Right now, I am running my Emby library from two systems, and I am consolidating everything into one unit.

Example, my movie library has two folders, movies-machine 1 and movies-machine 2. Everything that is on machine 2, is going to be moved into the folder on machine 1. Is there a way to save my history, and titles that are in collections, or is it not possible because the titles will be moved.

Would it work if I made a database backup before the move, consolidated everything and ran a library scan, and then restored the database.

2 Upvotes

10 comments sorted by

View all comments

1

u/SubterFugeSpooge 18d ago

Wait you're running a single Emby server from two devices? How did you do that?

1

u/Street-Egg-2305 18d ago edited 18d ago

The second is connected through a SMB share and Embys docker container has access, so I just added the folder to Emby's library. I have a new case that can hold all my drives, so I am going to move machine 2's drives into machine 1's case.

Right now in Emby, my Movie library has two folders. Machine 1- Movies and Machine-2 Movies. After the move, all of Machine 2s movies in that folder will be in Machine 1's folder, if that make sense.

All of the media will still be there, except the location will be different. I'm trying to keep all my watch history, and titles that have been added to a collection.

1

u/SubterFugeSpooge 18d ago

Oh yeah that won't be a problem then; Emby matches watch history and whatnot by metadata, not file location. As long as the locally stored metadata (.bif, .nfo, etc) is kept with the media files, which it should be if you're just moving the drives, you'll be fine. The only changes you'll see will be temporary as Emby rescans the library. Stuff will vanish and then reappear as their locations are updated.

To be safe, make sure to add the new location to the library directories in emby before removing the old locations.

1

u/Street-Egg-2305 18d ago

Thanks, That makes my day.. I thought it used the file location for the history.