I’m currently in the process of rebuilding my database, and would like to retain the watched status for all my users, if possible. I’ve followed the instructions found here Move Viewstate/Ratings from One Install to Another | Plex Support and I have the settings.sql file.
I started from scratch, and I’m currently scanning all my libraries anew. Once the libraries are finished rebuilding, I was planning on copying the settings.sql back into the database. But I was thinking about it, and I was wondering if this would work. Since the database has been rebuilt from scratch, the records for individual episodes and movies won’t be the same as the old database. So will this process work?
Only if you are using the same metadata agent for the library. The status is based on the GUID for the item, not the itemID. If your movie library was using TheMovieDB for example a particular movie might have GUID tmdb12345 that same movie matched with Plex Movie (legacy) might have GUID tt54321
So if your database has a viewstate record for movie tmdb12345 at 76% complete for UserX. The movie needs to be matched with the same agent to get same tmdb12345 ID that matches the viewstate record
I wondered why play status and up next only worked part of the time when replacing a library with a new “copy”. When it didn’t work correctly I know for sure I switched agents lol
I have another question about this, since I’m still waiting for the database to finish updating. If something is watched on the new server during the interim (in other words after I exported the settings.sql file) but before I re-import it back in, will that watched status be retained? Or does that get wiped out when I copy the watched status back into the database?
Thanks for the help with this, I have been able to successfully transfer the view states to the new server, and it has worked perfectly!
One other question, is there a way to do the same with playlists? Since the new server has started rebuilding, I noticed that playlists have been lost. I still have the old database, is there a way for me to extract the playlist information from the old database, and apply it to the new one?