r/PleX•
RouterMonkey

Syncing media between two Plex servers

Help

I have a Plex server with a media library of ~27GB. I've started to think about building a server for off-site backups, syncing the media directory. I started to think about where I could host this, and realized that my son would probably be more than willing to host at his house. That led me down the path of considering how feasible it would be for us to both host local Plex servers using the sync media library, but not syncing anything in Plex itself. Just the content synced, with each Plex instance running completely unaware of the other.

It seems to me that this wouldn't be a problem, but I just wanted to put this out there in case there was some gotcha I hadn't considered before starting to head down this path. I've tried to do some research, but it's hard to filter through the conversations of people considering this but including Plex watched staus and such, which is NOT something I'm interested in doing. Two completely separate Plex servers, just both using a synced media directory.

Posted Mar 1, 2021, 2:04 PM UTC

28
drdrew16•

You could do this with either Syncthing or a scheduled rsync task between the two boxes. However, the only thing that may cause a trip up would be if media were added to the destination box and not the source, which could cause some issues depending on how you architect this.

The only other thing I can think of would be data caps. If one of you hosts the source box and the other has a local clone, the initial sync may blow an ISP’s data cap. May not be an issue but figured I’d mention it.

2
RouterMonkeyOP•

The plan was to get the initial sync done locally, then work on moving it offsite and keeping it up to date from there. Fortunately, neither of us has to deal with data caps.

He doesn't have a ton of content on his current Plex server, and thus, doesn't add a lot. So we'd either have to figure out the the bi-directional sync or I'd just be the one to obtain any new content (9 times out of 10, he ask me to get anything he wants anyways)

1
Murky-Sector•

Yes it's doable. Multiple server instances can import the same media files. Outside of the media files, each server instance will have an exclusive non-shared dataset and config.

Not the same as an HA setup with symmetrical servers instances and shared backend.

2
RouterMonkeyOP•

Yeah, I'm not really looking at HA, but really just an offsite backup.

But when I was thinking about it, I realized he runs a small Plex server now but also spends a lot of time using mine. So, if I could backup my media to his house, but then allow him to run his own Plex server off the media, it gives me a back and him local content. So I get my backup and he gets a local server.

2
Murky-Sector•

Yes, that's a straightforward remote file synching scenario. I use amazon s3 as the cloud storage point for this and it works perfectly.

Setup a scheduled job (ie cron) running on each side, one for push to s3 from the transmitter side and one for pull on the receiver side. Not complex at all, you can do each side with a one liner using tools like s3cmd sync.

https://s3tools.org/s3cmd

And as you well state it also serves as really solid backup. Probably the most solid available. S3 can be setup for redundancy across multiple continents :)

2
RouterMonkeyOP•

Yeah, I really thought there were no issues with this plan, I really posted just to make sure there wasn't something obvious that I was missing in this.

2
JMeucci•

This is precisely what I have done. I have PMS on a PC with media on a QNAP NAS. I purchased a used 8-bay QNAP NAS, sync'd the data locally and shipped it off to my buddies house. I have a second PMS on that NAS that he connects to and every morning at 7am they perform a two way sync using QNAP's Hybrid Sync. Anything that he has added comes to me and my new material to him. This also gives him the capability to stream all content local so no Transcoding on my side for him. It will also allow for a small amount of manual load balancing. Both of our networks are connected via OpenVPN, that continues to be rock solid, so we are as protected (read...no QNAPCLoud) as possible. Only "issue" is that the sync can take 12+ hours on really heavy days.

2
Aacidus•

Just pay his electric bill and you'll be set.

1