Sync Watch status

A topic that has been done before - I have searched, and many of the threads are old or outdated!

I have just built a second server, onto it is a copy of all my media. The old server is going to move location, hence I now have two servers, which on the whole have exactly the same content.

I would like my (and all my users) sync status to stay in sync across the two.

At the moment I am trying to use the trakt plugin, but the developer of that jumped ship years ago… and whilst I can get some success it seems to be very hit and miss.

What I am after is a reliable way to keep in sync watch status for movies and tv shows, for multiple users across two servers. Any pointers/guidance/a reason why the Plex team haven’t implemented this feature? Which has been requested by many users over the years?

I have to agree. Syncing metadata between servers should be implemented in PMS. It’s more than just watch status too. At present any modification to metadata means doing the same thing again on a separate server. It gets annoying rather quickly. The additional benefit of this feature means that one server’s metadata set could potentially act as a backup should another server needs to be reset.

No fool proof way? trakt is letting me down significantly now!

If you are not afraid of Linux and/or Node.js
https://www.npmjs.com/package/plex-sync

So I have spun up this on a VM, seems to be working well so far - will test a bit and see if the cron job maintains the users in sync - a bit of a pain to find all the individual users tokens. However all seems to be sorted.

I still don’t see how this could be hard to implement int he plex GUI - but then again I am not a developer…

Question on how to run the cron job - I have a script with

#!/bin/sh

plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]
plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]
plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]
plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]
plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]
plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]

Which syncs two libraries with multiple users.

Great. Works amazingly. I have chmod +x the file, and when I run “sudo /path/to/script.sh”, I see the green progress bars and my watch statuses come into sync.

However
when I try and run this from cron I fail

I used crontab -e

added
*/10 * * * * /path/to/script.sh

didnt work, tried the same in “sudo crontab -e”

tried adding “>/dev/null 2>&1”

tried running
*/10 * * * * plex-sync [token]@[IP]/[Library number] [token]@[IP]/[Library number]

straight from cron… but no matter what I do i can’t get cron to run it… and it works so well when I run it

Sure I am missing something obvious