Export/Import watch history

I would like to request a way to Export and Import the watch history in the UI. Right now you have to grep and etc but there really should be an easy way to do it through the UI. For backup purposes as well as upgrading/replacing servers. I realize that doesn’t happen very often but it is a real PITA when you do have to do it.

Are you aware of Sync Watch State and Ratings | Plex Support ?

Thank you for the find. I was not aware of this but it’s not quite what I am wanting. This is per account and doesn’t work for managed users. I am the person that hosts the server. If I upgrade it or move the Plex server install to another machine, I want an easy way to migrate everyone’s watch history.

I’ve done it using sqlite. It’s not the hardest thing to do but it could be automated in the UI. A button somewhere that I click and the sql script runs, zips, and prompts me to save. Then to restore, click a button, choose a file, and it imports it. All with the correct paths and such.

Moving an install is rather straight forward if you follow this procedure. This will also maintain your watch history, ratings etc (same for any managed uses).

If your setup got corrupted you could still attempt to simply migrate the view state and ratings.

Yes, those are the procedures that I usually follow. Those work great when going from Windows to Windows or Linux to Linux but when going from Windows to Linux or the other way the paths aren’t correct and the watch history doesn’t get brought over. In that case you have to follow this: Move Viewstate/Ratings from One Install to Another | Plex Support

Granted, no one moves servers very often and even rarer is switching OS’s in the process but when they do, having a simpler way would be awesome. Especially when Docker containers are more and more the norm.

1 Like

In addition take a peek at this thread and some of the comments from myself and volts.

If dashboard, statistics etc… is also stuff you want to move from one PMS to another then it might help. These are all the tables I export when moving one from install to another.

"/usr/lib/plexmediaserver/Plex Media Server" --sqlite com.plexapp.plugins.library.db ".output settings-views.sql" ".dump metadata_item_settings" ".dump metadata_item_views" ".dump accounts" ".dump devices" ".dump statistics_media" ".dump statistics_bandwidth"

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.