Transfer Plex viewstate information (watched/unwatched, view progress and ratings) between accounts on a Plex Media Server
- copying complete viewstate from one Plex account/user to another
- moving complete viewstate from one Plex account/user to another
- support for managed users, admin user and full Plex accounts
- interactive command line interface
Argument (short/long) | Description | Required |
---|---|---|
-p /--db-path |
Path to com.plexapp.plugins.library.db file | Yes |
Please note: Make sure to stop Plex Media Server before using the transfer script. Running the script while Plex is running may result in database corruption. I strongly advise creating a backup of the database file before running the script.
- Download and extract the latest release for Windows
- Stop Plex Media Server by right-clicking onto the system tray icon and then clicking "Exit"
- Open a Powershell window
- Enter the path to the release's transfer-plex-user-viewstate.exe (can be done by simply dragging it onto the Powershell window)
- Enter
-p
or--db-path
followed by the path to the com.plexapp.plugins.library.db file, which is located in the Plex data directory (check the Plex documentation for details on how to find it) - Make sure your command looks something like this:
C:\Users\cetteup\Downloads\transfer-plex-user-viewstate-0.1-windows\transfer-plex-user-viewstate.exe -p "C:\Users\cetteup\AppData\Local\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db"
- Hit enter to run the command
- Follow the instruction to select source and target account as well as the transfer mode (move/copy)
- Once the transfer is complete, start Plex Media Server back up
- Download and extract the latest release for Linux
- Open a terminal window
- Stop the Plex Media Server service using
sudo service plexmediaserver stop
,sudo systemctl stop plexmediaserver
or your preferred command for stopping a service (omitsudo
if you are logged in as root) - Navigate to the downloaded release, e.g.
cd ~/Downloads/transfer-plex-user-viewstate-0.1-linux/
- Make sure you have execute permission for the transfer-plex-user-viewstate binary by running
chmod +x transfer-plex-user-viewstate
- Enter
./transfer-plex-user-viewstate
followed by-p
or--db-path
and the path to the com.plexapp.plugins.library.db file, which is located in the Plex data directory (check the Plex documentation for details on how to find it) - Make sure your command looks something like this:
./transfer-plex-user-viewstate -p /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases/com.plexapp.plugins.library.db
- Hit enter to run the command
- Follow the instruction to select source and target account as well as the transfer mode (move/copy)
- Once the transfer is complete, start the Plex Media Server service back up (
sudo service plexmediaserver start
,sudo systemctl start plexmediaserver
)
If you have Python >=3.6 installed on your system, you can use the Python script directly. No need to download the binary. Make sure to install required depencies first (pip3 install -r requirements.txt
).
- users/accounts only appear in database after connecting to the server and/or playing a media item from it at least once
- Tautulli (A Python based monitoring and tracking tool for Plex Media Server) will not pick up any of the transferred viewstate information