Jump to content

Query Emby database files


Recommended Posts

Posted

Following the guide here https://emby.media/community/index.php?/topic/10427-how-to-migrate-emby-server/ I'm migrating to a new PC.

 

However unfortunately during the move one of my drives has died.  Is there an query I could run on the database using SQLite that will allow me to get the info I need.

 

I'm thinking something like

select * from mediatable where filelocation like 'F:\%'

but I have no idea if the schema and database structure to know where to start.  It looks a bit more complicated than that.

Posted

Hi @@DaveM77, the migration guide is designed to migrate personalization, not library setup. So rather than try to port your library setup, I would just rebuild that on the new server. So your steps would look like

 

  • Install new server
  • Migrate data from old server to restore settings and personalization
  • Setup library on new server

Does this help? Let us know. Thanks !

Posted

ok - ignore the migration side.  I still have a full backup of the system drive where emby was installed - is there any database or files within there that would give me a way of listing all my media?  Any sort of cache or whatever emby uses.

Posted

the library.db file

i suspected that but couldn't make any sense of the scheme. Couldn't see a table with file locations in it or media names. Any suggestions gratefully appreciated
Posted

Try the TypedBaseItems table.

Posted

Nailed it ta - missed it due to all the null values in path at the top of the table.

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...