# Export/Import watch history

**URL:** <https://forums.plex.tv/t/export-import-watch-history/808477>\
**Category:** General Discussions\
**Tags:** server-windows\
**Created:** [August 30, 2022, 4:12am UTC](https://forums.plex.tv/t/export-import-watch-history/808477 "2022-08-30T04:12:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![danpomeroy](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danpomeroy](https://forums.plex.tv/u/danpomeroy)\
**Post date:** [August 30, 2022, 4:12am UTC](https://forums.plex.tv/t/export-import-watch-history/808477/1 "2022-08-30T04:12:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![OttoKerner](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/ottokerner/32/10079_2.png) [@OttoKerner](https://forums.plex.tv/u/OttoKerner)\
**Post date:** [August 30, 2022, 5:13am UTC](https://forums.plex.tv/t/export-import-watch-history/808477/2 "2022-08-30T05:13:19Z")

</div>

Are you aware of [Sync Watch State and Ratings | Plex Support](https://support.plex.tv/articles/sync-watch-state-and-ratings/) ?

---

<div class="post-metadata">

**Author:** ![danpomeroy](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danpomeroy](https://forums.plex.tv/u/danpomeroy)\
**Post date:** [August 30, 2022, 1:50pm UTC](https://forums.plex.tv/t/export-import-watch-history/808477/3 "2022-08-30T13:50:50Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tom80H](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/tom80h/32/19753_2.png) [@tom80H](https://forums.plex.tv/u/tom80H)\
**Post date:** [August 30, 2022, 2:20pm UTC](https://forums.plex.tv/t/export-import-watch-history/808477/4 "2022-08-30T14:20:32Z")

</div>

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

[https://support.plex.tv/articles/201370363-move-an-install-to-another-system/](https://support.plex.tv/articles/201370363-move-an-install-to-another-system/)

# 

If your setup got corrupted you could still attempt to simply migrate the view state and ratings.  
[https://support.plex.tv/articles/201154527-move-viewstate-ratings-from-one-install-to-another/](https://support.plex.tv/articles/201154527-move-viewstate-ratings-from-one-install-to-another/)

---

<div class="post-metadata">

**Author:** ![danpomeroy](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@danpomeroy](https://forums.plex.tv/u/danpomeroy)\
**Post date:** [August 30, 2022, 3:15pm UTC](https://forums.plex.tv/t/export-import-watch-history/808477/5 "2022-08-30T15:15:42Z")

</div>

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](https://support.plex.tv/articles/201154527-move-viewstate-ratings-from-one-install-to-another/)

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.

---

<div class="post-metadata">

**Author:** ![anon5074910](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@anon5074910](https://forums.plex.tv/u/anon5074910)\
**Post date:** [August 30, 2022, 3:28pm UTC](https://forums.plex.tv/t/export-import-watch-history/808477/6 "2022-08-30T15:28:07Z")

</div>

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

> [@Corrupt Database - Transferring User Information](https://forums.plex.tv/t/corrupt-database-transferring-user-information/771222):
>
> Server Version#:1.24.4.5081 Player Version#:1:24.4.5081 Hi there: I’m hoping someone can help me. I’ve got a corrupted database on Windows 10 and have been unable to update since version 1.24.4.5081. If I update none of my files will play including on my computer so I have to do a roll back. I’m not worried about my database, but I do want to transfer my user data and viewing information. I’ve tried repairing my database with no luck and have followed the directions in the article - Move…

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"`

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [November 28, 2022, 3:28pm UTC](https://forums.plex.tv/t/export-import-watch-history/808477/7 "2022-11-28T15:28:35Z")

</div>

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