Jump to content

Recover watched status after reinstall


Recommended Posts

kidnappervan
Posted

I've extracted UserDatas.csv from the old library.db and imported it into the new library.db but it didn't recover the watched status.

What am I doing wrong?

Neminem
Posted

Not using the Emby backup & restore plugin

kidnappervan
Posted

Can anyone actually answer my question?

Posted

Can you tell us exactly what you did ?

kidnappervan
Posted

My old installation was crashing, so, I reinstalled, let it scan my libraries and build a new database, shut it down, used DB Browser for SQLite to copy the table from the old db into the new one, then restarted, but the watched status did not reappear in the new installation. 

Posted

what were the exact commands ?

kidnappervan
Posted

i think it was REPLACE INTO librarynew  SELECT * FROM userdata;

can you tell me the correct command?

Posted

We don't really have a documented "correct command". This is what the backup feature is built to handle for you.

But I would think that you cannot just copy those rows alone without causing database corruption due to foreign key constraints. You'd also need the userdatakeys table. 

You can probably get this to work but you're probably going to have to fix a few things one after the other until you get there. I don't have a ready-made list because we have not testing what you are trying to do, but off the top of my head, user ids are going to be different so that will need manual fixup.

kidnappervan
Posted

I thought Backup & Restore was only for metadata. Is it too late now to use the plugin to save the watched status. I have the old library.db and only have two active users. 

Posted

Unless you have the entire old server installation, then yes it's too late. But I would try what I mentioned above and see if that helps.

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